— Use du to know the disk usage of a file in your system. If you want to know the disk usagefora particular folder or file in Linux, you can type in the command df and the name of the folder or file. For exampl
(bashrc中的rc为run command的缩写,来源于麻省理工的runcom,表示:从档案中取出命令来执行) 测试磁盘读写速度:dd, device driver的缩写dd if= /dev/zero of=/tmp/output.txt bs=8k count=256k conv=ascii 查看linux系统信息:uname -a (unix name的缩写, 查看内核/OS/ CPU信息)cat /proc/cpuinfoarch查看...
“mkdir”(Make directory)命令在命名路径下创建新的目录。然而如果目录已经存在了,那么它就会返回一个错误信息"不能创建文件夹,文件夹已经存在了"("cannot create folder, folder already exists") root@raspberrypi:/opt/labpark# mkdir raspbox 注意:目录只能在用户拥有写权限的目录下才能创建。mkdir:不能创建目录...
# export -p //列出当前的环境变量值 export COLORFGBG='7;0' export COLORTERM=truecolor export COMMAND_MODE=unix2003 定义环境变量 # export MYENV //定义环境变量 # export MYENV=7 //定义环境变量并赋值 7、du disk usage:用于显示目录或文件的大小。du 会显示指定的目录或文件所占用的磁盘空间。语法...
know how to see the disk space usage for a file or folder using the terminal application in Linux. While it is easy to view the size with any graphical file manager app, it isn't so obvious via the command line for someone who hasn't used Linux before. Here is how you see the ...
Type# du /bootto use du command. Step 2. Using the s switch Type# du –s /boot It shows total disk usage by argument value passed with du command. Step 3. Using the c switch Type# du –sc /boot It shows the grand total disk usage value of the folder. ...
bindkey - Binds keys to an edit command. All bindings will be shown if no options is specified. bison - Generates a parser program for specified grammar file. bltin - Runs the internal command in the shell. break - Exits from a for, foreach, while, select or until loop. builtin - ...
Command line structure: growpart <disk-partition> <partition-number>. Note that there is a space in front of the partition number. If the following command output is displayed: no tools available to resize disk with 'gpt' FAILED: failed to get a resizer for id '' The disk uses the GPT...
This command will check the sda1 partition only. However, this fsck command is unusable on a mounted partition. If you do such a thing, there is a high probability that it can damage the system. To check the home folder that is present on a different partition (for instance, sda2), ...
The same reason will cause different disk usage fromducommand anddfcommand, please refer toWhy does df show bigger disk usage than du? To identify the used file size (in blocks), use the command below: Raw # lsof -Fn -Fs |grep -B1 -i deleted | grep ^s | cut -c 2- | awk '{...