Tag: Linux

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.

How to Remove 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.

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 The archived files are usually named.tar.gz or.tgz and are called usually tarballs. As with many Linux commands, there are many options that.

Linux how o set environment variable
To set a new environment variable, use the export command. For example to set the environment variable called TEST_HOME you can run this command.

How to create a file in Linux using Terminal
There are a few ways to create a new empty file or redirect the output of a command to a new file. To create an empty file, any of these commands can accomplish that without having to install any extra packages or modules.

Secret Lesser known useful Linux commands
The tree command will list you directory, files and sub folders contents in an easy to see way. No need for repeated ls commands. This can be useful to get an overview of all subfolders of the target directory.

Commands any Linux Sysadmin should learn first
These are some of the most useful commands for system administration and devops on Linux. They are command line tolls because most of the actions on system administration you would want to be automated and scheduled

How to zip and unzip files and folders in Linux
Install on RHEL, Centos, Fedora, Rocky Linux, etc. Install on Debian, Ubuntu, etc. Current directory contents, files and one sub folder. This creates the zip file, the.zip extension is optional you can name it anything you like but.zip makes it more clear.

How to find a file in Linux
The most used way is in Terminal as this can become part of a script very easily and automate tasks on a Linux server. If you are using a desktop environment such as Gnome or Kde, the search for files is as simple as just typing text in a search box.

How to delete a directory in Linux
To delete a directory in Linux in a desktop environment is easy as pressing the Del / Delete key. To delete a directory in Linux using command line CLI in Terminal or SSH you can use the rm command.
