| who |
| who am i |
| |
| ssh scott@192.168.1.105 |
| |
| |
| ps aux | grep pts/8 |
| |
| |
| |
| pwd // where are you? |
| |
| |
| |
| Page 205 |
| mkdir -p dir1/dir2/dir3/dir4/dir5 |
| rm -r dir1 //deleted all directory (include subDirectory) |
| |
| rmdir -p dir1/dir2/dir3/dir4/dir5 //just need type all subDirectory |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| PATH is important -----vbird page 205 |
| echo $PATH |
| |
| add varia |
| |
| PATH= "$PATH":/root |
| ------------- |
| |
| create shortCut link the origin file |
| touch DeskTop/a.txt |
| cp -s DeskTop/a.txt . |
| cp -s DeskTop/a.txt b.txt |
| |
| |
| |
| |
| which |
| |
| whereis |
| locate (updatedb) |
| |
| find |
| |
| find ~/ -name dir6.txt //need type which directory |
| find /home -name dir6.txt |
| |
| |
| //redirect Page 394 |
| // >> > << < 2>> 2> |
| |
| find /home -name dir6.txt >> ret.txt 2>> errRet.txt //just redirect |
| |
| |
| ------------- |
| mount /umount: |
| ln [option] ..target ..DIRECTORY |
| |
| help |
| |
| |
| ------------ |
| fdisk -help |
| |
| --------- |
| mkfs -t ext3 |
| |
| -------- |
| mount ios image |
| mount -o loop /root/centos6.3_x86_64.iso /mnt/centos_dvd |
| umount /mnt/centos_dvd |
| |
| |
| |
| compress / uncompress |
| |
| bzip2 a.txt |
| bunzip2 a.txt.bz2 |
| |
| |
| |
| -------------------- |
| touch a.txt |
| nano a.txt |
| vim a.txt |
| |
| gedit a.txt |
| emac a.txt |
| |
| -------------------- |
| |
| :sp /etc/a.txt |
| |
| |
| |
| -------------- |
| set |
| unset |
| |
| read |
| array |
| declare |
| |
| alias lm='ls -al' //bie ming |
| unalias lm |
| |
| |
| -----------------//hackerssa |
| history //list the history what you type |
| |
| |
| |
| //Page 396 |
| /dev/null |
| |
| //do not display stderr infomation(display stdout only) |
| find /home -name dir6.txt > ret.txt 2> /dev/null |
| |
| |
| |
| ========================== |
| cat > catFile |
| bala bala..... |
| bala... |
| ctrl +D(terminated enter) |
| |
| ========================= |
| cat > catFile << "eof" |
| bala bala.... |
| bala ... |
| eof (teminated by auto, when you type "eof") |
| |
| |
| |
| standard input < << output > >> |
| standard error output 2> 2>> |
| |
| |
| ====================== |
| ;, &&, || |
| |
| condition |
| |
| |
| |
| =========== |
| $? |
| |
| cmd1 && cmd2 if (cmd1 == ture), so excute cmd2; |
| if(cmd1 != True), so do not excute |
| |
| |
| |
| excute cmd2 |
| cmd1 || cmd2 if (cmd1 == ture), so do not excute cmd2; |
| if(cmd1 != True), so excute cmd2 |
| |
| ================== |
| pipe |
| |
| |
| cut //Page 401 |
| echo $PATH //just take a look |
| echo $PATH | cut -d ':' -f 5 //display the fiveth info, separate by ':' |
| |
| |
| |
| |
| grep //Page 402 display something which need condition |
| |
| ls -al /etc | less //display standard output to other |
| ls -al /etc | grep dir_1 //display directory which name is "dir_1" |
| |
| ===================== |
| export |
| |
| |
| //display all the infomation about login (it's important) |
| last |
| |
| last | grep 'scott' //display login infomation as scott (account) |
| last | grep 'scott' //display login infomation as root |
| |
| |
| |
| ================== |
| sort order |
| sort, wc, uniq |
| |
| ls | sort |
| ls | sort -n |
| ls | sort -r |
| ls | sort -f |
| ls | sort -t ':' |
| |
| |
| |
| |
| |
| |
| |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)