幾個linux命令
設定系統當前時間
[root@localhost ~]# date -s '3:03:00'
Thu Sep 4 03:03:00 PDT 2014
[root@localhost ~]# date
Thu Sep 4 03:03:01 PDT 2014
hwclock 檢視硬體時間
lspci 顯示硬體資訊
lsusb 顯示USB資訊
lsmod 顯示驅動資訊
使用zip壓縮檔案
zip
zip newfile.zip oldfilename
解壓縮檔案
unzip newfile.zip
歸檔資料夾
tar -cvf newfile.tar folder_name
tar -zcvf etc_backup.tar.gz /etc //相當於先tar然後gzip壓縮(這種方式比較常用)
解壓過程為
gunzip etc_backup.tar.gz
釋放打包檔案
tar -xvf etc_backup.tar
檔案查詢
locate
用來快速查詢檔案,資料夾
此命令需要預先建立資料庫,資料庫預設每天更新一次,可用updatedb命令手工建立更新資料庫
find的使用根據名字
[oracle@localhost aaron]$ find . -name '*.dbf'
./system01.dbf
./sysaux01.dbf
./temp01.dbf
./example01.dbf
./users01.dbf
./undotbs01.dbf
find根據許可權
[oracle@localhost aaron]$ find . -perm '644'
./etc_backup.tar.gz
find 根據檔案型別
[oracle@localhost oradata]$ find . -type 'd'
.
./aaron
find檢視找出結果的具體資訊
[oracle@localhost aaron]$ find . -name '*.dbf' -exec ls -l {} \;
-rw-r----- 1 oracle oinstall 713039872 Sep 3 23:56 ./system01.dbf
-rw-r----- 1 oracle oinstall 503324672 Sep 3 23:58 ./sysaux01.dbf
-rw-r----- 1 oracle oinstall 20979712 Sep 3 23:27 ./temp01.dbf
-rw-r----- 1 oracle oinstall 104865792 Sep 3 23:43 ./example01.dbf
-rw-r----- 1 oracle oinstall 5251072 Sep 3 23:43 ./users01.dbf
-rw-r----- 1 oracle oinstall 62922752 Sep 3 23:58 ./undotbs01.dbf
[root@localhost ~]# date -s '3:03:00'
Thu Sep 4 03:03:00 PDT 2014
[root@localhost ~]# date
Thu Sep 4 03:03:01 PDT 2014
hwclock 檢視硬體時間
lspci 顯示硬體資訊
lsusb 顯示USB資訊
lsmod 顯示驅動資訊
使用zip壓縮檔案
zip
zip newfile.zip oldfilename
解壓縮檔案
unzip newfile.zip
歸檔資料夾
tar -cvf newfile.tar folder_name
tar -zcvf etc_backup.tar.gz /etc //相當於先tar然後gzip壓縮(這種方式比較常用)
解壓過程為
gunzip etc_backup.tar.gz
釋放打包檔案
tar -xvf etc_backup.tar
檔案查詢
locate
用來快速查詢檔案,資料夾
此命令需要預先建立資料庫,資料庫預設每天更新一次,可用updatedb命令手工建立更新資料庫
find的使用根據名字
[oracle@localhost aaron]$ find . -name '*.dbf'
./system01.dbf
./sysaux01.dbf
./temp01.dbf
./example01.dbf
./users01.dbf
./undotbs01.dbf
find根據許可權
[oracle@localhost aaron]$ find . -perm '644'
./etc_backup.tar.gz
find 根據檔案型別
[oracle@localhost oradata]$ find . -type 'd'
.
./aaron
find檢視找出結果的具體資訊
[oracle@localhost aaron]$ find . -name '*.dbf' -exec ls -l {} \;
-rw-r----- 1 oracle oinstall 713039872 Sep 3 23:56 ./system01.dbf
-rw-r----- 1 oracle oinstall 503324672 Sep 3 23:58 ./sysaux01.dbf
-rw-r----- 1 oracle oinstall 20979712 Sep 3 23:27 ./temp01.dbf
-rw-r----- 1 oracle oinstall 104865792 Sep 3 23:43 ./example01.dbf
-rw-r----- 1 oracle oinstall 5251072 Sep 3 23:43 ./users01.dbf
-rw-r----- 1 oracle oinstall 62922752 Sep 3 23:58 ./undotbs01.dbf
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28719055/viewspace-1263774/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 幾個常用的linux效能監控命令Linux
- Linux實驗的幾個基礎命令Linux
- Linux的幾個新手必備的命令(一)Linux
- 想要學好Linux,搞定這幾個命令將會事半功倍!Linux
- 監控 Linux 伺服器活動的幾個命令Linux伺服器
- 今天11月22日小雪,linux幾個有趣的命令Linux
- Linux命令列中幾個使用history相關的技巧Linux命令列
- 幾個Linux命令及指令碼使用中的奇淫巧技Linux指令碼
- 幾個與文字處理相關的Linux命令總結Linux
- Linux 中 awk命令如何擷取指定欄位的前幾個字元Linux字元
- Systemctl幾個操作服務命令
- 學習一個 Linux 命令:shutdown 命令Linux
- 你知道你自己最經常使用的是哪幾個Linux命令呢?Linux
- Tee命令的幾個使用例項
- 每天一個Linux命令(6):rmdir命令Linux
- 每天一個Linux命令(5):rm命令Linux
- 每天一個Linux命令(2):shutdown命令Linux
- 每天一個 Linux 命令(12):more 命令Linux
- 每天一個 Linux 命令(16):which 命令Linux
- 掌握了這幾個 Linux 命令可以讓你工作效率提升三倍Linux
- 6個有趣的Linux命令Linux
- 常用的Linux,記住了幾個?Linux
- 幾個常用的網路診斷命令
- 個人積累linux 日常命令Linux
- Linux的10個風險命令Linux
- Linux 操作必備 150 個命令Linux
- 學習一個 Linux 命令:pstreeLinux
- 25 個 Linux 下最炫酷又強大的命令列神器,你用過其中哪幾個呢?Linux命令列
- 幾個Linux系統的操作技巧Linux
- 每天一個linux命令(1):find命令之execLinux
- Linux命令技巧之30個必會的命令技巧Linux
- 使用者登入管理的幾個命令
- 【Linux知識】7個常用的Linux網路命令!Linux
- Linux磁碟管理常用的三個命令!Linux
- 每天一個Linux命令(1):xargsLinux
- 必須掌握的10個Linux命令!Linux
- linux最常用的20個命令(一)Linux
- 個人用_linux常用命令Linux
- 每天學一個 Linux 命令(15):manLinux