lesson 2 Flashcards
what is the command to change a password ?
passwd userid
in which file can you see all the existing users in a linux machine ?
/etc/passwd
in which file can you see all the groups created on a linux machine ?
/etc/group
what are the two paths to navigate a filesystem in Linux?
- 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
what are the different ways to create a file in Linux?
touch, cp , vi,
what is the command used to find a file or directory ?
find command
what is an inode (index node) in Linux ?
a number that points to a file on a hard disk
what is the command to view the inode of your files?
ls -li
what is the difference between a soft link and a hard link ?
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
what is the command to create a hard link and soft link ?
- ln for hard link
- ln -s for soft link
lab