AIOPS DEVSECOPS AWS LINUX3
PURNACHANDER UPPULA
0:00 / 0:00
AIOPS DEVSECOPS AWS LINUX3
12 просмотров · 9 дн. назад
PURNACHANDER UPPULA
7 подписчиков
12 просмотров · 9 дн. назад
tar
inode
hardlink
softlink/symlink
cmdzip the file
tar -czf filename.tar.gz filename
c-create
z - format
f - filename
x - exctract
tar -xzf filename.tar.gz
file/folder
who is the owner
which group has access
what are the permissions
when is it created
when is it updated
size of the file
=======================================================
where is the actual content is not part of metadata
ls -li - you can see inode numbers
stat file-name - inode info
symlink/softlink
=========
shortcut
Chrome shortcut - C:\ProgramFiles\*64\Chrome
1. works as shortcut to the file/folder
2. used for backward compatability
3. used for version swithching at the time of upgrade
4. inode number of symlink and actual file is different
5. if we remove actual file, symlink will break
/home/ec2-user/devops/linux/symlink/symlink.txt
RHEL-8 - dnf
upto RHEL-7 - yum
ln -s /home/ec2-user/prometheus-3.15.0.linux-amd64/prometheus prometheus
unlink prometheus
ln -s /home/ec2-user/prometheus-3.15.0.linux-amd64 prometheus
hardlink
========
ln actualfile backfilename
1. inode is same for hardlink
2. used for file backups, even we delete the file,
it will not be deleted completely until all the references are deleted
3. hardlink will not work for folders