My most frequently used terminal commands

I have been learning programming for the last few months. After learning the basic front end stuff (HTML, CSS, JavaScript and a little bit of Python), I was looking for new things to learn. Then I found about git. In order to use git effectively, I found out that I had to use the terminal (which I actually found out is technically a terminal emulator as terminals were historically hardware that were used to interact with the computer). I googled and found a short Udacity course on command line basics. Right now I have been using the terminal solely for using git and here are some of the commands that I have been using.

ls

Lists the files and folders of the current directory.

cd

Used to change the directory/folder from the terminal.

mkdir {name}

Creates a new directory.

pwd

Pwd (Print Working Directory) command writes the full path name of the current working directory.

rm {path}

Removes the specified files or directories. This sometimes requires additional parameters.

mv {source} {destination}

Moves the specified files or directories.

cp {source} {destination}

Copies the specified files or directories.

Git based commands (not shell commands)

git init

This is the first command to initialise git in an already existing directory.

git clone {url}

This brings the existing git repository to your local machine.

git add {files}

After making the changes, we use this command to select the files that need to be committed.

git commit -m {message}

When the files are added, they have to be committed along with a message that gives a brief information about the change.

git push

Pushes the code to the repository hosted somewhere e.g. Github, it has several other parameters for branch and where to push, which I will find out soon :)