Professional Documents
Culture Documents
Awaischeatsheet
Awaischeatsheet
To compress The tar program is used to The passwd The chown command changes the
gzip filename create, maintain, modify, and command is used owner and owning group of files.
to decompress extract files that are archived to change the chown [OPTION]... [OWNER][:[GROUP]]
gzip -d filename.gz in the tar format password of a user FILE...
to compress and keep tar [-] A --catenate account chown chope file.txt
original file --concatenate | c --create | d passwd [OPTION] Set the owner of file file.txt to user
gzip -k filename --diff --compare | [USER] chope.
uncompress thegzipped file --delete | r --append | t passwd sally a new file's permissions may be
gunzip backup.tar.gz --list | --test-label | u --update restricted in a specific way by applying
uz - gunzips and extracts a | a permissions "mask" called the
gzip'd tar'd archive x --extract --get [options] umask. The umask command is used
[pathname ...] to set this mask, or to show you its
tar -xf archive.tar current value.
umask [-S] [mask]
umask a+r umask a-x umask 777
find searches for files in a useradd is a low-level SGID is defined Sticky bits are mainly set on
directory hierarchy. utility for adding users to a as giving directories.
find [-H] [-L] [-P] [-D system. temporary If the sticky bit is set for a directory,
debugopts] [-Olevel] [path...] useradd [options] LOGIN permissions to a only the owner of that directory or the
[expression] useradd -D user to run a owner of a file can delete or rename a
find . /home/jeff /home/stacy useradd newperson program/file with file within that directory.
find . -name 'apple' the permissions of Encrypt a file with a password
The userdel command the file group Mcrypt is a replacement of crypt in old
deletes a user account and all permissions to unix
associated files. become member mcrypt file1
userdel [options] LOGIN of that group to decrypt the fiel
userdel -r username execute the file mcrypt -d file1.nc
chmod g+s mcrypt -d or mdecrypt
file1.txt
chmod 2750
file1.txt
Changes group ownership of a file or files. SUID can be set in two ways
chgrp [OPTION]... GROUP FILE... 1) Symbolic way (s, Stands for Set)
chgrp hope file.txt 2) Numerical/octal way (4)
Change the owning group of the file file.txt to the group chmod u+s file1.txt
named hope. chmod 4750 file1.txt