2.3 Using Directories and Listing Files - Part 1 Flashcards
True or False: Filenames suffixes intrinsic meaning for Linux files.
(ex: document.txt, document.pdf, document.doc)
False - suffixes in Linux have no intrinsic value and only there for human understanding.
What does a tilde (~) represent in Linux?
Tildes (~) is a special chart yet that represents a user’s home directory.
( ex: ~/Documents/Reports )
Which command in Linux changes the users’ present working directory?
cd - which stands for “change directory”
Absolute paths in Linux always begin with which keyboard character?
“ / “ (backslash)
Ex:
/home/user/Documents/Reports
What does “.” And “..” represent in the Linux file directory system?
“.” - Indicates the user’s current location
“..” - Indicates the user’s parent directory
Both are hidden and only revealed with the “ls -a” command.
What does the “tree” command do and what are some common options for the tree command?
The tree command displays a hierarchical listing of a directory tree
Options:
-a shows hidden files including “.” & “..”
-f Lists the full path for each sub directory and file
-d shows only subdirectories
-L limits the subdirectory list (+2,3,4,etc)
-P display on files that match a subsequent pattern (-P cata*)
- -prune filters out empty directories
-p prints permissions of each file / directory
-u prints username owner of file
-g prints group ownership of files
-s prints size of each file
-h makes output more human readable