<1> 查看当前目录有哪些文件: “ls”
<2> 查看当前时间: “date”
<3> 计算时间:“time”
<4> 打开一个文件:“cd /home/”
<5> 返回上级目录 :“cd ..”
注意细节对比:有的地方“/”的位置不能错
<6> 显示的更加详细(隐藏的文件也显示出来) :“ls -a”
<7> 显示的更加详细(列表显示) :“ls -l”
<8> 寻求帮助 :“ls --help” 或者 “man ls”
<9> 查看当前目录:“pwd”
<10> 创建目录 :“mkdir haha”(haha为创建文件名)
<11> 创建文件: “touch hello.c”
<12>文件写入内容:“echo “#include <stdio.h>” > hello.c”(注意此时echo后面的引号不能省略)
<13>查看写入内容:“cat hello.c”
<14>进入文本编辑模式:“gedit hello.c”
<15>分屏显示代码:“more hello.c ”
<16>查看文件头几行:“head -4 hello.c”
<17>查看文件尾几行:“tail -1 hello.c”