---
# System prepended metadata

title: Notes for Linux commands and git

---

# Notes for Linux

## Genaral Tags

Here is list of commands that we need to use often:

pwd $\rightarrow$ print working directory
ls  $\rightarrow$ list content
ls - a  $\rightarrow$ Show the hidden files/folders
cd $\rightarrow$ change directroy
cp $\rightarrow$ copy files
rm $\rightarrow$ remove or delete files
mkdir $\rightarrow$ Make new folder 
rmdir $\rightarrow$ Remove folder
rm -r <font color="sky blue">FOLDER NAME</font> $\rightarrow$ remove non-empty folders
man <font color="sky blue">cmd</font> $\rightarrow$ more about the cmd


## Git commands


git clone$\rightarrow$ clone the working directory
git pull $\rightarrow$ update the working  directory
git push $\rightarrow$ add chages to the github
git merge $\rightarrow$ merge the directory it's much more compliacted need to check more
git status $\rightarrow$ shows the modified file in working directory
git init $\rightarrow$ initialize an existing directory as a Git repository
git reset $\rightarrow$ unstage a file while retaining the changes in working directory
git commit -m “[descriptive message]” $\rightarrow$ commit your staged content as a new commit snapshot




