Topics Discussed:
- File management
- User management
- Hard link & Soft Links
- Umask
Try to map files with some numbers i.e there will be inode(index number) to view inode we use ls -i There are two types of links: Hard Links & Soft Links
Hard Links – It’s similar to the shortcuts in windows.It cannot be used to create links bw directories or across file systems. There will not be additional space. stat “<“space”>””<“filename”>” gives details about the that particular file Each file has 3 time stamps – Access, Modify, Change ln “<“space”>” “<“presentfilename”>” “<“space”>” “<“newfilename”>” – to create hard link Check the inode number here. Here we are accessing the same file with a different name. cat “<“filename”>” : To see the contents in the file
Soft links – – ln lm -s “<“space”>” “<“presentfilename”>” “<“space”>” “<“newfilename”>” – this creates a softlink. These two files are different because both have different inode.
umask – this permission decides the default permission of a file. Eg: 022 is the umask Shell can be used for executing a command. We can use shell for environmental settings To study bash – use command man bash.
tty :to see the current terminal