Basic Terminal Commands
pwd : show the the location/name of the folder currently opened in your terminal window.
ls : list all the files and folders of the location currently opened in terminal.
ls -lah : also list hidden files
cd : Change directory. Allows you to move in your disk from one location to another.
cd .. : move to previous level of the folder
mkdir : Creates a new folder under the currently opened location
mkdir -p path1/path2/new-folder : create a hierarchy of folders
cp : Copies a file from one location to another.
rm and rmdir : Delete a file or a folder.
cat, more, less : Lets you view the content of a text file.
grep : Filters a text file on the keyword you specify.
cat mylargefile.txt | grep john : find john in the file
du : Shows you the Disk Usage.
du -hs : show in human-readable form.
man : Displays the manual page of any supported command.
man ls : shows all available information about ls including all the arguments and flags that can use
- for more : visit the site
How git work?
- Repositories ( repo’s ) : the folder contain a .git file which track the change of all the change of the folder, then the folder will be the repository
- Commit History : save the commit
