reading-notes

code fellows reading notes

View on GitHub

Reading-Notes

Code Fellows Python 401

Read: P2 - Practice in the Terminal

Bash Command Line Tutorials

The Command Line

Basic Navigation

Command Description
   
pwd Print Working Directory: current location
ls list contents: root directory (available files)
cd (filename here here) change directories: moves into file
   

More About Files

File type Description
   
file [path] Find out what type of item a file or directory is.
Spaces in names Put whole path in quotes ( “ ) or a backslash ( \ ) in front of spaces.
Hidden files and directories A name beginning with a . (dot) is considered hidden.
   

Manual Pages

Command Description
   
man View the man page for a command.
man -k Search for man pages containing the search term.
q Press q to exit man pages

File Manipulation

Command Description
   
mkdir Create a directory
rmdir Remove a directory (only if empty).
touch Create a blank file.
cp Copy the source file to the destination.
mv Move the source file to the destination.
rm Remove a file or directory.
  Common options: -r -f
   

Cheat Sheet