LINUX CH 3 Flashcards
True or False: A directory is a type of file.
True
Which command would a user type on the command line to find out the current directory in the directory tree?
pwd
What is an absolute pathname?
An absolute pathname is a path that starts with a leading slash (“/”) in most operating systems, indicating that it begins at the root directory
ex: /home/resume
After typing the ls –a command, you notice a file whose filename begins with a period ( . ). What does this mean?
It is a hidden file.
True or False: The less command offers less functionality than the more command.
False: the less command is named for doing more than the more command (remember that “less is more,” more or less). Like the more command, the less command can browse the contents of a text file page-by-page by pressing the spacebar and line-by-line by pressing the Enter key; however, you can also use the arrow keys on the keyboard to scroll up and down the contents of the file.
What directory are you placed in when you log into a Linux system?
in your home directory, which is a place unique to your user account for storing personal files.
What metacharacter can refer you to your own home directory?
the ~ metacharacter.
To confirm the system directory that you are currently in, what command should you run?
To confirm the system directory that you are currently in, observe the name at the end of the shell prompt or run the pwd (print working directory) command.
What command do you use to change directories?
To change directories, you can issue the cd (change directory) command with an argument specifying the destination directory. If you do not specify a destination directory, the cd command returns you to your home directory.
What 2 commands can be used to view a large text file interactively, page-by-page?
less & more
What does .. do in terms of moving through directories
.. jump back one directory