Linux Commands 10

Compress and archive

  $zip file.zip file1 file2 zip file1 and file2 into file.zip

  $unzip file.zip unzip file.zip

  $gzip -c filename > file.gz compress the file filename to file.gz

  $ gunzip file.gz to unzip the file.gz file

  $tar -cf file.tar file1 file2 creates a tar archive   

  $tar -zcvf file.tar file1 file2 Create a tar archive and compress it   

  $tar -xf file.tar Free tar archive   

  $tar -zxf file.tar.gz unpack and free the tar archive

Print

  $lpr filename print file

  $lpstat shows the status of all printers

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325108941&siteId=291194637
Recommended