CMPSC 16 Lecture 2: 10.02.18: Basic Command Line and File System
Document Summary
Filesystem: contains the entire hierarchy of directories, subdirectories, and files. $ is the command prompt and appears when the terminal is ready to accept commands. The pwd command: shows the path to the folder you are currently in. Starts from the root to where you are currently. The ls command: lists all the files and directories. Option -al: lists more specific details such as permissions and file sizes. Directoryname is the directory you want to move to. Can specify either an absolute or relative path. Absolute path: starts from the root directory and goes to a specified location. Relative path: relative to the current location in the filesystem. Diba directory: the home directory of the user (dot) means the current directory) (dot dot) means the parent directory or the directory that the current directory is. Source includes the name of the file you want to copy. Renames the file if you specify a filename in the destination path.