My most frequently used terminal commands
17 April 2016
Lists the files and folders of the current directory.
Used to change the directory/folder from the terminal.
Creates a new directory.
Pwd (Print Working Directory) command writes the full path name of the current working directory.
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)
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.
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 :)
Originally published at surbhioberoi.com on April 17, 2016.