Command Lines Flashcards
Home Directory
~
present working directory
pwd
shows the physical pathway
-P
see files in current directory
ls
see both “visible” and “hidden” files and directories.
-a
flag that will list out the names of the files and directories as well as give more detailed information about them.
-l
shows file size
-h
sorts by file size
-S
Sorting by Last Modified Time
-t
reverse sort
-r
create a link between two files
ln
If the source file already exists when linking files you will get an error, how do you fix the error and force link the files
-f
link a directory
-s
change directory
cd
Once inside of a directory, it can be useful to be able to navigate back up a directory. One way to do this would be to call cd giving it the full path to the directory you want to go. Another way to accomplish the task of moving up to the parent directory is to use the special path
. .