Day 4 takes

Bale
After playing -c -f new package after package file name plus -v display process
Once every three general f parameter must be the last
-x unpack, extract
tar red file after -cvf c1908.py.tar source file ---> produce packaging
tar -xvf red package file
Support for multiple files, directories, packaging, spaces to separate
tar -cvf my.py.tar c1908c.py c1907.py c1906.py
gzip end of the compressed file has a .gz compression packing
-C specified decompression path
tar czvf c1908pytargz c1908py
tar xzvf c1908pytargz -C / home
.bz2 bzip2 compressed end of the command file
yum install bzip2
tar  cjvf c1908pytarbz2 c1908py
tar  xjvf c1908pytarbz2 -C / home
your sudo
su change the identity of other users
su root user switches normal user normal user
Ordinary users to switch root password is required
root - c1908 - have space around
The role of the character is that after adding the current user initializes various environmental variables.
sudo is used to execute commands as root
/etc/sudoers vim sudoers
In the command mode / All targeting this line
Add the following
c1908 ALL = (ALL) ALL Save and exit
sudo usermod -aG wheel c1908 sudo command take effect
sudo ls / root commands can be executed using a normal user password

Guess you like

Origin www.cnblogs.com/Darry-Ring/p/12143095.html