How Can you Upload a File With cPanel File Manager?
This article will show you How to Upload a File Using the cPanel File Manager.…
The ‘du’ command in Linux is a standard Unix/Linux command to check the capacity of the disk used by files and directories on a machine. There are several parameter options in which the du command utilized to get the results in many formats. Additionally, the du command used in a recurrent manner.
Below are the ten useful ‘du’ commands with their examples. That will help you to calculate the disk space occupied by the files and directories in Linux.
[root@bodhost]# du /home/bodhost
40 /home/bodhost/downloads
4 /home/bodhost/.mozilla/plugins
4 /home/bodhost/.mozilla/extensions
12 /home/bodhost/.mozilla
12 /home/bodhost/.ssh
689112 /home/bodhost/Ubuntu-12.10
689360 /home/bodhost
The output displays the number of disk blocks in the /home/bodhost directory as well as its sub-directories.
If you want the results in “Human Readable Format”, use the “-h” option with the “du” command. With this command, you will see the sizes in Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, etc.
[root@bodhost]# du -h /home/bodhost
40K /home/bodhost/downloads
4.0K /home/bodhost/.mozilla/plugins
4.0K /home/bodhost/.mozilla/extensions
12K /home/bodhost/.mozilla
12K /home/bodhost/.ssh
673M /home/bodhost/Ubuntu-12.10
674M /home/bodhost
[root@bodhost]# du -sh /home/bodhost
674M /home/bodhost
[root@bodhost]# du -a /home/bodhost
4 /home/bodhost/.bash_logout
12 /home/bodhost/downloads/uploadprogress-1.0.3.1.tgz
24 /home/bodhost/downloads/Phpfiles-org.tar.bz2
40 /home/bodhost/downloads
12 /home/bodhost/uploadprogress-1.0.3.1.tgz
4 /home/bodhost/.mozilla/plugins
4 /home/bodhost/.mozilla/extensions
12 /home/bodhost/.mozilla
4 /home/bodhost/.bashrc
689108 /home/bodhost/Ubuntu-12.10/ubuntu-12.10-server-i386.iso
689112 /home/bodhost/Ubuntu-12.10
689360 /home/bodhost
[root@bodhost]# du -ah /home/bodhost 4.0K /home/bodhost/.bash_logout 12K /home/bodhost/downloads/uploadprogress-1.0.3.1.tgz 24K /home/bodhost/downloads/Phpfiles-org.tar.bz2 40K /home/bodhost/downloads 12K /home/bodhost/uploadprogress-1.0.3.1.tgz 4.0K /home/bodhost/.mozilla/plugins 4.0K /home/bodhost/.mozilla/extensions 12K /home/bodhost/.mozilla 4.0K /home/bodhost/.bashrc 673M /home/bodhost/Ubuntu-12.10/ubuntu-12.10-server-i386.iso 673M /home/bodhost/Ubuntu-12.10 674M /home/bodhost
[root@bodhost]# du -k /home/bodhost 40 /home/bodhost/downloads 4 /home/bodhost/.mozilla/plugins 4 /home/bodhost/.mozilla/extensions 12 /home/bodhost/.mozilla 12 /home/bodhost/.ssh 689112 /home/bodhost/Ubuntu-12.10 689360 /home/bodhost
[root@bodhost]# du -mh /home/bodhost 40K /home/bodhost/downloads 4.0K /home/bodhost/.mozilla/plugins 4.0K /home/bodhost/.mozilla/extensions 12K /home/bodhost/.mozilla 12K /home/bodhost/.ssh 673M /home/bodhost/Ubuntu-12.10 674M /home/bodhost
[root@bodhost]# du -ch /home/bodhost 40K /home/bodhost/downloads 4.0K /home/bodhost/.mozilla/plugins 4.0K /home/bodhost/.mozilla/extensions 12K /home/bodhost/.mozilla 12K /home/bodhost/.ssh 673M /home/bodhost/Ubuntu-12.10 674M /home/bodhost 674M total
[root@tecmint]# du -ah --exclude="*.txt" /home/tecmint 4.0K /home/bodhost/.bash_logout 12K /home/bodhost/downloads/uploadprogress-1.0.3.1.tgz 24K /home/bodhost/downloads/Phpfiles-org.tar.bz2 40K /home/bodhost/downloads 12K /home/bodhost/uploadprogress-1.0.3.1.tgz 4.0K /home/bodhost/.bash_history 4.0K /home/bodhost/.bash_profile 4.0K /home/bodhost/.mozilla/plugins 4.0K /home/bodhost/.mozilla/extensions 12K /home/bodhost/.mozilla 4.0K /home/bodhost/.bashrc 24K /home/bodhost/Phpfiles-org.tar.bz2 4.0K /home/bodhost/geoipupdate.sh 4.0K /home/bodhost/.zshrc 120K /home/bodhost/goaccess-0.4.2.tar.gz.1 673M /home/bodhost/Ubuntu-12.10/ubuntu-12.10-server-i386.iso 673M /home/bodhost/Ubuntu-12.10 674M /home/bodhost
[root@tecmint]# du -ha --time /home/tecmint 4.0K 2012-10-12 22:32 /home/bodhost/.bash_logout 12K 2013-01-19 18:48 /home/bodhost/downloads/uploadprogress-1.0.3.1.tgz 24K 2013-01-19 18:48 /home/bodhost/downloads/Phpfiles-org.tar.bz2 40K 2013-01-19 18:48 /home/bodhost/downloads 12K 2013-01-19 18:32 /home/bodhost/uploadprogress-1.0.3.1.tgz 4.0K 2012-10-13 00:11 /home/bodhost/.bash_history 4.0K 2012-10-12 22:32 /home/bodhost/.bash_profile 0 2013-01-19 18:32 /home/bodhost/xyz.txt 0 2013-01-19 18:32 /home/bodhost/abc.txt 4.0K 2012-10-12 22:32 /home/bodhost/.mozilla/plugins 4.0K 2012-10-12 22:32 /home/bodhost/.mozilla/extensions 12K 2012-10-12 22:32 /home/bodhost/.mozilla 4.0K 2012-10-12 22:32 /home/bodhost/.bashrc 24K 2013-01-19 18:32 /home/bodhost/Phpfiles-org.tar.bz2 4.0K 2013-01-19 18:32 /home/bodhost/geoipupdate.sh 4.0K 2012-10-12 22:32 /home/bodhost/.zshrc 120K 2013-01-19 18:32 /home/bodhost/goaccess-0.4.2.tar.gz.1 673M 2013-01-19 18:51 /home/bodhost/Ubuntu-12.10/ubuntu-12.10-server-i386.iso 673M 2013-01-19 18:51 /home/bodhost/Ubuntu-12.10 674M 2013-01-19 18:52 /home/bodhost
Explore more hosting insights, tips and industry updates.
This article will show you How to Upload a File Using the cPanel File Manager.…
When you’re hosting multiple websites on the same server using name-based virtual hosting, your server…
What is a Hyper-V Server? Microsoft Hyper V Server 2008 is a virtualization product to…