zip檔解壓縮 jack@main-server:~$ unzip file. zip Archive: file. zip inflating:file 1 inflating:file 3
gzip與tar
結合tar與gzip jack@main-server:~$ tar cvf test. tar * file 1 file 2 file 3 jack@main-server:~$ gzip test. tar 或 jack@main-server:~$ tar cvf test. tar * | gzip test. tar (利用管線來一次執行二個指令)
搜尋特定權限的檔案或目錄 n jack@main-server:~$ sudo find /home perm 600
搜尋特定大小的檔案 n jack@main-server:~$ sudo find /etc -size +3500 k -print
whereis指令會在以下的目錄中進行搜尋 n /bin n /etc n /sbin n /usr/etc n /usr/games n /usr/include n /usr/lib
whereis指令 /usr/local n /usr/man n /usr/sbin n /usr/src n /usr/local/bin n /usr/local/etc n /usr/local/games n /usr/local/lib n usr/local/man jack@main-server:~$ whereis man n
which指令 jack@main-server:~$ which ping find who reboot /bin/ping /usr/bin/find /usr/bin/who /sbin/reboot
搜尋包含指定字串的檔案 n jack@main-server:~$ sudo grep -n 'security issues' /etc/*. *
篩選前一指令執行的結果 n jack@main-server:~$ ls -al /usr/bin | grep install