Learn Version Control with Git
)}

Cheatsheet

  • print the full pathname of the current directory:
pwd
  • List all files and folders in the current directory:
ls
  • Display hidden files of folders:
ls -a
  • Navigate into an existing folder:
cd <Folder Name>
  • Create an empty folder
mkdir <Folder Name>
  • Navigate to the parent directory
cd ..
  • Navigate to the root directory
cd
  • Clear terminal
clear
  • Navigate to folder using path
cd <Folder-1/Folder-2/Folder-3>
  • Create a new file:
touch <File Name>
  • print to terminal
echo "<Text>"
  • Add text to file:
echo "<Text>" > <File Name>
  • Display contents of file:
cat <File Name>
  • open file editor:
nano <File Name>
  • Delete file or empty folder
rm <File Name>
  • Delete non-empty folders:
rm -rf Folder Name

\

Feedback Summary
5.0
3 students
5

100%
4

0%
3

0%
2

0%
1

0%
Written Reviews
There are no written reviews yet.