Some Basic Shell commands
Before we dive into Git commands, it would be better for us to become familiar with some of the basic shell commands. Here, I will be presenting some of the basic shell commands using Git Bash.
If you have not installed Git in your PC yet, you can visit the link provided below for complete guidance about the installation of Git.
Basic Shell commands for directory management
‘ls’ command is used to list files and directories.
‘cd’ command is used to change directory.
‘mkdir’ command is used to make a directory.
‘pwd’ command is used to represent the path for your current directory.
‘start’ command in Windows is used to open a file or directory.
Basic Shell commands for file management
‘clear’ command is used to clear terminal.
‘ — help’ command is used to display help file of a particular command.
‘touch’ command is used to create a new file
‘echo’ command is used to print certain values in terminal.
‘>’ is used to write to a file
‘cat’ command is given in order to list the contents of the file.
‘>>’ is used to append into a file.
‘nano’ command is used to edit file.
‘rm’ command can be used in order to remove files.
So, all the mentioned commands are some Basic Shell Commands that you need to know. Besides, if you are new to Git, you can read the blog provided below and get started with Git.