"Linux" compression decompression and so on common command usage __linux

Source: Internet
Author: User
Tags gtar

View System Parameters

uname-a

bash-3.00# uname-a

SunOS devin-wu-svr 5.10 generic_142910-17 i86pc i386 i86pc 1.SOLARIS10 1.1 compression

Tar cvf sunwxvnc.tar sunwxvnc the folder Sunwxvnc into Sunwxvnc.tar

Gzip Sunwxvnc.tar compresses Sunwxvnc.tar into SUNWxvnc.tar.gz and deletes Sunwxvnc.tar files

Gzip-c Sunwxvnc.tar >> SUNWxvnc.tar.gz compressed sunwxvnc.tar into GZ format output stream to SUNWxvnc.tar.gz, Sunwxvnc.tar files remain
1.2 Decompression

gzip-dc vnc-5.3.0-solaris-x64-pkg.tar.gz | tar xvf-

(-DC which D is the meaning of decompression, C refers to the retention of tar.gz original file, re-output stream to the back of the command tar XVF do further decompression, but is extracted to the current directory)

GZIP-DC vnc-5.3.0-solaris-x64-pkg.tar.gz >> Vnc-5.3.0-solaris-x64-pkg.tar (1.tar.gz uncompressed to tar package)

Tar xvf Vnc-5.3.0-solaris-x64-pkg.tar (2. Extract tar to the current directory)

Gtar XVF vnc-5.3.0-solaris-x64-pkg.tar-cvnc-5.3.0-solaris-x64-pkg

(2. The second use of this, to extract tar to the specified directory vnc-5.3.0-solaris-x64-pkg gtar command-C is to specify the decompression directory, tar command Solaris does not support-c) 1.3 Solaris Boot FTP and Telnet service

Solaris manages network services, such as Ftp,telnet, by inetd Unified management
can use Svcs-a | grep FTP and Svcs-a | The grep telnet command checks the running status of the current two services
If you return
Disable Svc:/network/ftp:default
Disable Svc:/network/telnet:default
Start a service
Svcadm Enable Svc:/network/ftp:default
Svcadm Enable Svc:/network/telnet:default
Stop Service
Svcadm Disable Svc:/network/ftp:default
Svcadm Disable Svc:/network/telnet:default


Reference Links: Solaris boot FTP and Telnet service


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.