2.3 Find Your Way - Using Directories and Listing Files Flashcards
Which of the following represents a hidden filename?
A) ./hidden.txt
B) /.hidden.txt
C) $hidden.txt
D) %hidden.txt
/.hidden.txt
This is a hidden file. The slash (/) at the beginning means that this is at the root level of the filesystem.
Which of the following could you use to change the current working directory to your home directory in bash? (Select 3)
A) cd
B) cd ~
C) cd $HOME
D) cd -
cd
cd ~
cd $HOME
What command will display on the screen a recursive list of the present working directory, including the subfolders?
ls -R
What command will print the current working directory?
pwd
What command will display all files and directories that are listed, including hidden files and directories?
ls -a
What command will create a long list of files and directories with each occupying one line, and additional information about
each file and directory that will be displayed?
ls -l or ll
What option(s) could you use with ls to show almost all files (except implied . and .. )?
ls -A
In what root file system are user binaries stored?
/bin
In what root file system are device files stored?
/dev
In what root file system are configuration files stored?
/etc
In what root file system are the kernel and process files stored?
/proc
In what root file system is the root user home directory files stored?
/root
The path to a file or directory location may be specified as an absolute path, starting with a _?
/
ex: /home/cloud_user/file1