1.1. Linux Commands

Here is a list of some commands in Linux

1.1.1. How to remove a non-empty directory?

Command Meaning
$ rm -rf directory-name
Removes directory-name forcefully (f) and recursively (r)

1.1.2. How to unzip tar.gz files?

Command Meaning
$ tar -zxvf file.tar.gz
Unzips a tar.gz file

1.1.3. How to move files from Downloads to a new folder?

Command Meaning
$ mv $HOME/filename.txt $HOME/new-folder/filenname.txt
Moves one file from $HOME to $HOME/new-folder
$ mv $HOME/*.* $HOME/new-folder
Moves all files with names and extensions from $HOME to $HOME/new-folder