linux常用命令之壓縮打包

2021-07-13 02:32:49 字數 634 閱讀 7746

df – report file system disk space usage 檢視檔案系統的使用清空

df [-hi] [path]

du – show file space usage ,輸出檔案的大小

預設情況下,輸出當前目錄和所有子目錄的大小

-s display only a total for each argument,僅顯示當前目錄的總大小

-s exclude size of subdirectories ,排除子目錄的大小

-h human readable

ln – make links between files ,建立檔案之間的連線

預設是硬連線

ln [-sf] source destination

stat – display file or file system status,顯示檔案或檔案系統的狀態

可以用這個指令看inode資訊

預設情況是顯示出檔案的inode資訊

stat [-f] file

-f file system,顯示該file所在的檔案系統super inode資訊

不加選項,顯示檔案的inode

加了選項,顯示檔案所在磁碟的inode資訊

Linux常用命令 壓縮打包類

1.1 功能 壓縮或解壓檔案,預設gzip壓縮成gz檔案,gunzip解壓gz檔案 1.2 用法 gzip 選項 檔案 gunzip 檔案 gzip常用選項 d 解壓檔案 c 寫入到標準輸出,源壓縮檔案保持不變 可以不用解壓檔案檢視檔案內容 1,fast compress faster 9,best...

Linux常用命令 打包和壓縮檔案

打包和壓縮檔案 bunzip2 file1.bz2 解壓乙個叫做 file1.bz2 的檔案 bzip2 file1 壓縮乙個叫做 file1 的檔案 gunzip file1.gz 解壓乙個叫做 file1.gz 的檔案 gzip file1 壓縮乙個叫做 file1 的檔案 gzip 9 fil...

Linux常用命令之 壓縮和解壓縮命令

目錄 zip格式 gz格式 tar格式 tar.gz格式 zip是windows中最常用的壓縮格式,安裝zip與unzip命令 yum install y unzip zip 壓縮命令 zip 英文原意 package and compress archive files 功能描述 將檔案或目錄壓縮...