目录操作命令
ls命令
1 | 用途: |
cd命令
1 | 英文原意:change directory |
mkdir命令
1 | 英文原意:make directories |
rmdir命令
1 | 英文原意:remove empty directories |
tree命令
1 | 英文原意:list contents of directories in a tree-like format |
文件操作命令
touch命令
1 | 英文原意:change file timestamps |
stat命令
1 | 英文原意:display file or file system status |
cat命令
1 | 英文原意:concatenate files and print on the standard output |
more命令
1 | 英文原意:file perusal filter for crt viewin |
less命令
1 | 英文原意:opposite of more |
head命令
1 | 英文原意:output the first part of files |
tail命令
1 | 英文原意:output the last part of files |
ln命令
1 | 英文原意:make links between file |
目录和文件都能操作的命令
rm命令
1 | 英文原意:remove files or directories |
cp命令
1 | 英文原意:copy files and directories |
mv命令
1 | 英文原意:move(rename) files |
基本权限命令
chmod命令
1 | 英文原意:change file mode bits |
所有者和所属组命令
chown命令
1 | 英文原意:change file owner and group |
chgrp命令
1 | 英文原意:change group ownership |
umask命令
1 | umask命令 |
帮助命令
man命令
1 | 英文原意:format and display the on-line manual pages |
快捷键:
命令帮助级别:
info命令
1 | info命令的帮助信息是一套完整的资料,每个单独命令的帮助信息只是这套完整资料中的某一个章节 |
快捷键:
help命令:
1 | help命令只能获取shell内置命令的帮助,但是在Linux中绝大多数命令是外部命令,所以help命令的作用非常有限 |
–help选项
1 | 绝大多数命令都可以使用"--help"选项来查看帮助 |
搜索命令
whereis命令
1 | 英文原意:locate the binary source,and manual page files for a command |
which命令
1 | 英文原意:shows the full path of(shell) commands |
locate命令
1 | 英文原意:find files by name |
find命令
1 | 英文原意:search for files in a drectory hierarchy |
压缩和解压命令
.
zip格式的压缩命令
1 | 英文原意:package and compress(archive) files |
zip解压:
1 | 英文原意:list,test and extract compressed files in a ZIP archive |
.gz格式压缩命令
1 | 英文原意:compress or expand files |
“gunzip压缩包”命令
1 | 英文原意:compress or expand files |
.bz2格式压缩命令
1 | 英文原意:a block-sorting files compressor |
.tar格式的打包命令
1 | 英文原意:tar |
.tar.gz和.tar.bz2格式命令
1 | 命令格式: |
关机和重启命令
sync数据同步
1 | 英文原意:flush file system buffers |
shutdown命令
1 | 英文原意:bring the system down |
reboot命令
1 | 命令格式: |
halt和poweroff命令
1 | 用途: |
init命令
1 | 用途: |