1. cliveportman
  2. /code
  3. /terminal-commands-for-centos-1

Terminal commands for CentOS

To shutdown:

    shutdown -h now

To reboot:

    shutdown -r now

To check overall disk space:


To check disk space per directory, without showing all the subdirectories (e.g. to see who's account using up so much space):

    du -sh /home/account-name

To count all files in a directory:

ls -f | wc -l