LINUX CH 3 Flashcards

1
Q

True or False: A directory is a type of file.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which command would a user type on the command line to find out the current directory in the directory tree?

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an absolute pathname?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

After typing the ls –a command, you notice a file whose filename begins with a period ( . ). What does this mean?

A

It is a hidden file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

True or False: The less command offers less functionality than the more command.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What directory are you placed in when you log into a Linux system?

A

in your home directory, which is a place unique to your user account for storing personal files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What metacharacter can refer you to your own home directory?

A

the ~ metacharacter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

To confirm the system directory that you are currently in, what command should you run?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command do you use to change directories?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What 2 commands can be used to view a large text file interactively, page-by-page?

A

less & more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does .. do in terms of moving through directories

A

.. jump back one directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly