幾個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
- 幾個常用的linux效能監控命令Linux
- Linux需要謹慎使用的幾個命令Linux
- MySql 幾個命令MySql
- Linux的幾個新手必備的命令(一)Linux
- 監控 Linux 伺服器活動的幾個命令Linux伺服器
- 想要學好Linux,搞定這幾個命令將會事半功倍!Linux
- Linux命令列中幾個使用history相關的技巧Linux命令列
- 必須要理解幾個linux命令(摘至網路)Linux
- oracle幾個有用的命令Oracle
- informix幾個遷移命令ORM
- 幾個與文字處理相關的Linux命令總結Linux
- 幾個Linux命令及指令碼使用中的奇淫巧技Linux指令碼
- Systemctl幾個操作服務命令
- aix的幾個簡單命令AI
- 記下常用的LINUX,UNIX系統中用到的幾個命令Linux
- 幾個linux網址Linux
- Tee命令的幾個使用例項
- sudo命令使用的幾個場景
- Git的幾個常用命令Git
- 在linux上安裝oracle 10g用到的幾個小命令LinuxOracle 10g
- 每天一個 Linux 命令(27):linux chmod 命令Linux
- 你知道你自己最經常使用的是哪幾個Linux命令呢?Linux
- 幾個常用的網路診斷命令
- 幾個查詢系統資訊的命令!
- 歸檔的幾個命令的區別:
- 學習一個 Linux 命令:shutdown 命令Linux
- 每天一個 Linux 命令(49): at 命令Linux
- 每天一個linux命令(49):at命令Linux
- 一個cheat命令 == Linux命令小抄大全Linux
- 掌握了這幾個 Linux 命令可以讓你工作效率提升三倍Linux
- 常用的Linux,記住了幾個?Linux
- linux幾個名詞的意思Linux
- 使用者登入管理的幾個命令