System Access and the File System Flashcards

(44 cards)

1
Q

What is meant by console system access?

A

Direct access to the OS via video peripherals (VGA/DVI/HDMI)

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

What is meant by remote system access?

A

Connecting to a system over a network connection (Telnet/SSH) using IP address on port 23/22

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

How do you connect over SSH with a specific username?

A

‘ssh -l username ip_address’ or ‘ssh username@ip_address’

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

What is the command prompt symbol for a standard user?

A

$

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

What is the command prompt symbol for the root user?

A

#

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

What is contained in /boot

A

Boot loader files used by the system boot loader (grub.cfg)

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

What is contained in /root

A

The root users home directory

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

What is contained in /dev

A

System device files (disk/optical drive/audio/keyboard/mouse etc)

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

What is contained in /etc

A

Configuration files for all system components

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

What is contained in /bin -> /usr/bin

A

User commands for use within the terminal

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

What is contained in /sbin -> /usr/sbin

A

Optional 3rd party applications (not shipped with the OS)

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

What is contained in /proc

A

Running process files that only exist in memory

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

What is contained in /lib -> /usr/lib

A

C language libraries needed by the OS and applications

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

What is contained in /tmp

A

Directory for temporary files

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

What is contained in /home

A

System user home directories

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

What is contained in /var

A

System and application log files

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

What is contained in /run

A

System daemon files that start very early in the Linux launch process (systemd/udev etc) - stores temporary files during launch

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

What is contained in /mnt

A

Used to mount external file systems

19
Q

What is contained in /media

A

Used for mounting CD-ROMS/ISOs

20
Q

What is contained in /opt

A

Optional 3rd party applications (not shipped with the OS)

21
Q

What letter denotes a file is a directory?

22
Q

What symbol denotes a file is a regular file?

23
Q

What letter denotes a file is a link?

24
Q

What letter denotes a file is a device or special file?

25
What letter denotes a file is a socket?
s
26
What letter denotes a file is a named pipe?
p
27
What letter denotes a file is a block device?
b
28
What command is used for changing passwords?
passwd
29
How do you change the password for the current user?
Just type 'passwd'
30
How do you change the password for a specific user?
sudo passwd user_id |
31
How do you list files in chronological order?
ls -ltr (oldest at the top) or ls -lt (newest at the top)
32
How do you enable the 'locate' command to work properly?
Install package 'mlocate' and run 'sudo updatedb' to update the file system index
33
When should you run 'sudo updatedb'?
When you have added/removed a file/directory from the file system
34
How are square brackets used as string wildcards?
*[abc]* finds anything containing 'a', 'b', or 'c' - requires **
35
How do you use wildcards symbols to match exact substrings?
*abc* matches exactly 'abc'
36
What is an inode?
A pointer/number to a file on disk
37
What is the difference between soft and hard links?
A soft link is pointer to a file that points to an inode. A hard link points directly to an inode
38
What happens to soft links when the pointer file is deleted?
The soft link is also deleted
39
What happens to hard links when the pointer file is deleted?
The hard link remains pointing to the inode
40
How do you create a hard link?
ln /path/to/file /path/to/hard/link (the hard link path is created by the command)
41
What do hard links look like in a file list?
-rwxrwxrwx hard_link
42
What do soft links look like in a file list?
lrwxrwxrwx soft_link -> /path/to/linked/file
43
What command displays inode numbers?
ls -i
44
How does disk partitioning affect hard links?
Hard links must exist on the same disk partition