lesson 2 Flashcards

1
Q

what is the command to change a password ?

A

passwd userid

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

in which file can you see all the existing users in a linux machine ?

A

/etc/passwd

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

in which file can you see all the groups created on a linux machine ?

A

/etc/group

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

what are the two paths to navigate a filesystem in Linux?

A
  • absolute path : always begin with a / this means it starts from the root directory eg cd /var/log/secure
  • relative path : Does not begin with a / eg cd /var cd log cd secure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the different ways to create a file in Linux?

A

touch, cp , vi,

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

what is the command used to find a file or directory ?

A

find command

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

what is an inode (index node) in Linux ?

A

a number that points to a file on a hard disk

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

what is the command to view the inode of your files?

A

ls -li

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

what is the difference between a soft link and a hard link ?

A

in a soft link, if the original file is removed or renamed, the link is removed as well. In a hard link, deleting or renaming the original file will not affect the hard link

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

what is the command to create a hard link and soft link ?

A
  • ln for hard link
  • ln -s for soft link
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

lab

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