linux 下常用的命令
清屏 clear 和windows下的cls一样
上下翻页 pageup和pagedown没反应的话 按上shift
列举指定目录所包含的的内容 ls 和windows下的dir一样
查找文件 find / -name "install*" -print 查找整个磁盘
find /root -name "install?" -print 查找root目录下
通配符 *表示若干字符, ?单个字符, [abc] abc中任一个
显示文本文件内容 cat -en /home/2.txt
文件复制 cp *.png ?.txt /home
文件删除 rm home/*.png
文件移动 mv ./home/*/png ./pic
创建目录 mkdir -p -m 750 ./pic/
读4 写2 执行1,7目录所有者,5组成员,0其他
删除目录 rmdir ./pic
改变目录 cd ./pic .表示当前目录,..上级命令,cd 用户目录,cd /根目录
压缩文件 gzip 2.txt 解压 gzip -d 2.txt.gz
对于在windows下使用winzip压缩的文件 unzip *.zip
修改文件所有权 chown ff 2.txt 2.txt归ff所有
修改文件权限 chmod 775 1.txt 1.txt设置其所有者和同组人员可以读写执行,其他人不可写
帮助 shutdown--help
清屏 clear 和windows下的cls一样
上下翻页 pageup和pagedown没反应的话 按上shift
列举指定目录所包含的的内容 ls 和windows下的dir一样
查找文件 find / -name "install*" -print 查找整个磁盘
find /root -name "install?" -print 查找root目录下
通配符 *表示若干字符, ?单个字符, [abc] abc中任一个
显示文本文件内容 cat -en /home/2.txt
文件复制 cp *.png ?.txt /home
文件删除 rm home/*.png
文件移动 mv ./home/*/png ./pic
创建目录 mkdir -p -m 750 ./pic/
读4 写2 执行1,7目录所有者,5组成员,0其他
删除目录 rmdir ./pic
改变目录 cd ./pic .表示当前目录,..上级命令,cd 用户目录,cd /根目录
压缩文件 gzip 2.txt 解压 gzip -d 2.txt.gz
对于在windows下使用winzip压缩的文件 unzip *.zip
修改文件所有权 chown ff 2.txt 2.txt归ff所有
修改文件权限 chmod 775 1.txt 1.txt设置其所有者和同组人员可以读写执行,其他人不可写
帮助 shutdown--help