DEV Community

ruchikaatwal
ruchikaatwal

Posted on

Ubuntu commands

  • Command 'df' Short of "desk free". used to check available disk on system. Displays the information of file system device names, disk blocks, total disk space used, available disk space, percentage of usage and mount points on a file system
$ df
Enter fullscreen mode Exit fullscreen mode
  • With df add -h to display Disk Space in Human Readable Format like in MB and GB.
$ df -h
Enter fullscreen mode Exit fullscreen mode
  • Show only your home file system information.
$ df -h /home
Enter fullscreen mode Exit fullscreen mode
  • Change directory/Folder.
$ cd /folder_name
Enter fullscreen mode Exit fullscreen mode
  • Show just the names of files and directories existing in your present directory.
$ ls
Enter fullscreen mode Exit fullscreen mode
  • Show list of all the files and directories existing along with the details like permissions, ownership, size etc.
$ ll
Enter fullscreen mode Exit fullscreen mode

Top comments (0)