man command - show manual for command df - show disk usage du - show directory space usage du -sh - human readable size in GB free - show memory and swap usage whereis app - show possible locations of app which app - show which app will be run by defaultSHORTCUTS:ctrl+c - halts ...
NOTE For more details about Unix for beginners than you’ll find here, consider reading The Linux Command Line (No Starch Press, 2012), UNIX for the Impatient (Addison-Wesley Professional, 1995), and Learning the UNIX Operating System, 5th edition (O’Reilly, 2001). 注意:如果你想要了解更多...
例如,看看我们能否连接到网站 linuxcommand.org(我们最喜欢的网站之一), 我们可以这样使用 ping 命令:[me@linuxbox ~]$ ping linuxcommand.org 一旦启动,ping 命令会持续在特定的时间间隔内(默认是一秒)发送数据包,直到它被中断:[me@linuxbox ~]$ ping linuxcommand.orgPING linuxcommand.org (66.35.2...
that’s juser. The second set, group permissions, are for the file’s group (somegroup in the example). Any user in that group can take advantage of these permissions. (Use the groups command to see what group you’re in, and see 7.3.5 Working with Groups for more...
This output shows a detailed list with permissions, size, owner, and timestamp for each file and directory. The long listing format given by the -l option provides helpful file information at a glance.The ls command gives you flexible control over directory content listing. It’s one of the...
这算是“命令未找到”(command not found)的一种“精致”说法吧。 5.3 获取命令文档 知道了什么是命令之后,我们现在就可以获取各类命令可用的文档了。 5.3.1 help—获取Shell内建命令的帮助信息 Bash自带的帮助功能可用于所有Shell内建命令。只需要输入help,然后加上Shell内建命令的名称即可。下面是一个示例: [me...
For example, the following command prints a list of files in the current directory: shell可以将简单的模式与文件和目录名匹配,这个过程称为globbing。 这类似于其他系统中通配符的概念。其中最简单的是通配符*,它告诉shell匹配任意数量的任意字符。 例如,以下命令打印出当前目录中的文件列表:...
ls命令是列出目录内容(List Directory Contents)的意思。运行它就是列出文件夹里的内容,可能是文件也可能是文件夹。 1 2 3 root@raspberrypi:/# ls bin boot.bak etc lib media opt root sbin srv tmp var boot dev home lost+found mnt proc run selinux sys usr ...
--max-depth=N print the total for a directory (or file, with --all)onlyifitisNorfewer levels below the commandlineargument;--max-depth=0 is the same as--summarize--files0-from=F summarize disk usage of theNUL-terminatedfilenames specifiedinfileF;ifFis-,thenread names from standard ...
--to-command=COMMAND 将提取的文件通过管道传送至另一个程序 1.4.5 文件属性操作选项 选项 说明 --atime-preserve[=METHOD] 在输出的文件上保留访问时间,要么通过在读取(默认METHOD=‘replace’)后还原时间,要不就不要在第一次(METHOD=‘system’)设置时间 --clamp-mtime 仅在文件比 --mtime 给出的时间更新...