The command line gives you powerful control over your files and programs. While you can use the GUI for many things, you'll need to be comfortable with basic navigation for Git and Python.
ls is a command that lists files in a directory.ls -l has an argument, -l, which tells the ls command to list files in a long format.pwd – Print Working Directory: shows your current locationls – List files in the current directorycd foldername – Change into a directorycd .. – Go up one levells -la – List all files, including hidden ones, with detailsmkdir new_folder – Create a new foldertouch file.txt – Create an empty filerm file.txt – Delete a filemv file.txt ../ – Move or rename a filecp file.txt copy.txt – Copy a file/Users/you/Documents../projects. refers to the current directory; .. refers to the parent directorySuppose you're in /home/user. Here's what happens with each command:
cd Documents – goes to /home/user/Documentscd ../Downloads – goes to /home/Downloads (the previous command put you in the /home/user/Documents directory, so this "puts you back")ls -lh – lists files with sizes in human-readable formatTry these in your terminal:
pwdlsmkdir my_testlscd my_testtouch hello.txtlscd ..