Tag: Linux commands

  • Linux Check Disk Space Commands

    Linux Check Disk Space Commands

    How to check disk space in Linux command line. The command df shows you free disk space and du returns the disk usage statistics for various files and folders. df command The df command shows disk usage statistics and it stands for “Disk Free”. The df command bellow without any options will return the disk […]

  • How to Remove Directory in Linux

    How to Remove Directory in Linux

    How to Remove or Delete Directory in Linux To delete a directory in Linux remove command to use is rm or rmdir. Both work fine but there is an important difference between how rm and rmdir remove a directory. Caution If you delete a directory from the GUI even in Linux, the folder is moved […]

  • How to Compress and Extract Files using the tar command on Linux

    How to Compress and Extract Files using the tar command on Linux

    How to Compress and Extract Files using the tar command on Linux and How to create tar.gz file in Linux command line Compress files The tar command is used to pack and compress files and directories on Linux. The archived files are usually named .tar.gz or .tgz and are called usually tarballs. As with many […]

  • How to zip and unzip files and folders in Linux

    How to zip and unzip files and folders in Linux

    How to zip and unzip files and folders in Linux Install Zip Unzip Install on RHEL, Centos, Fedora, Rocky Linux, etc. Install on Debian, Ubuntu, etc. Using zip and unzip to compress and extract files and folders. Current directory contents, files and one sub folder. Zip files and directories recursively This creates the zip file, […]

  • Linux commands cheat sheet the most used list

    Linux commands cheat sheet the most used list

    Most useful Linux commands for daily  # Display how long has the system been running – since tle last restart. # List directory contents # List files in directory but better attributes and human-readable # List files in directory sorted by file date/time. # Change directory  # Wildcards When filtering for files or directories you […]