Linux Flashcards
Pwd
Present working directory
What is this symbol: ~
Tilde
What does the ~ sign expand to?
The full path for your home directory
Why is understanding where you are at any given time in your file system important?
This information can help you build paths to other files or help you if you get lost.
By default, Pwd will list the “logical” path of your current directory. What does this mean?
It will treat say linked paths as if they were the actual paths.
If you want to see the actual physical path of the directory in which you are working, what flag can you use?
pwd -P
What is the command for listing files and directories?
ls
How do you find out what files are in another directory?
Pass a path to the ls command.
It is common for Unix and Linux based machines to have ‘invisible’ or ‘hidden’ files that are prefixed with a ___.
‘dot’
What flag can you use to see hidden files?
ls -a
What is the flag for listing files and directories in long form?
ls -l
What is symlink short for?
Symobolic link
What flag can you use to see sizes of files in kilobytes and megabytes?
ls -lh
What is the default method of sorting a list of files and directories?
By name
How can we change the list function to sort by size (largest first)?
ls -lS