14. cd command examples Use “cd -” to toggle between the last two directories Use “shopt -s cdspell” to automatically correct mistyped directory names on cd More cd examples: 6 Awesome Linux cd command Hacks 15. gzip command examples To create a *.gz compressed file: ...
tar -zxvf file.tgz .:从.tgz文件中解压文件 man:手册(mancommand) zip file.zip file:将文件压缩为.zip文件 unzip file.zip:解压.zip文件 四、Ubuntu Linux系统管理 1.用户账户信息保存在/etc/passwd文件中 2.添加新用户可使用命令`sudo adduser username` 3.为确保用户能够使用sudo,需要在/etc/sudoers文件...
--ignore-command-error 忽略子进程的退出代码 --no-ignore-command-error 将子进程的非零退出代码觉得错误发生 -O, --to-stdout 解压文件至标准输出 --to-command=COMMAND 将解压的文件通过管道传送至还有一个程序 操作文件属性: --atime-preserve[=METHOD] 在输出的文件上保留訪问时间,要么通过在读取(默认 MET...
To unzip a .zip archive, we can simply use the unzip command: $ unzip some_folder.zip 3– Test the Integrity of a Zip File You may want to make sure your archive isn’t corrupted. For this, we can use the -t flag with the unzip command. This option extracts each specified file ...
16. bzip2 command examples To create a *.bz2 compressed file: $ bzip2 test.txt To uncompress a *.bz2 file: bzip2 -d test.txt.bz2 More bzip2 examples: BZ is Eazy! bzip2, bzgrep, bzcmp, bzdiff, bzcat, bzless, bzmore examples 17. unzip command examples To extract a *.zip compressed...
This subchapter looks atunzip, a UNIX (and Linux) command. unzipis used to uncompress .zip files. other On November 8, 2010, Ramesh Natarajan named this the number 17 most frequently used UNIX/Linux command at this web page50 Most Frequently Used UNIX / Linux Commands (With Examples). ...
7. vim command examples Go to the 143rd line of file $ vim +143 filename.txt Go to the first match of the specified $ vim +/search-term filename.txt Open the file in read only mode. $ vim -R /etc/passwd More vim examples:How To Record and Play in Vim Editor ...
Compressing and uncompressing files and folders, along with inspecting and storing them, are common operations that we often need to perform through the command line. This is especially true when working on a server that has no GUI. In this hands-on tutorial, we’ll learn the different ways ...
(The complete size of the encryped compressed data stream for zipfile entries is reported by the more verbose zipinfo(1L) reports, see the separate manual.) When no zipfile is specified (that is, the complete command is simply ‘‘unzip -v’’), a diagnostic screen is printed. In ...
17. unzip command examples To extract a *.zip compressed file: $ unzip test.zip View the contents of *.zip file (Without unzipping it): $ unzip -l jasper.zip Archive: jasper.zip Length Date Time Name --- --- --- --- 40995 11-30...