Linux 常用命令彙編(一)

來源:互聯網
上載者:User
1.man
對於那些不確定其用法的命令(比如是:ls),我們可以首先使用man命令來瞭解
使用格式:man ls
可以使用空格鍵翻頁,或者使用上、下方向鍵上下翻頁,要退出,則輸入 q或 CTRL-Z。
2.find
如果您知道檔案的名稱、或者甚至名稱的一部分,但不知道它所處的目錄,可以使用find命令。比如你要找檔案file,
命令格式:find  / -name 'file'
3.ln
用於在檔案之間建立連結
命令格式: ln [OPTION]... TARGET [LINK_NAME]
常用的[OPTION]:-s, --symbolic make symbolic links instead of hard links
執行這個命令之後,[LINK_NAME]-->TARGET,二者建立了連結關係,所有指向[LINK_NAME]的動作都會重新指向TARGET.
4.tar
tar是個歸檔命令,通過使用適當的選項可以壓縮/解壓縮檔案.常見的如:
解壓縮.gz檔案: tar -zxf ZipFileName.tar.gz
解壓縮.bz2檔案: tar -jxf ZipFileName.tar.bz2
5.yum
#following from man page
NAME
       yum - Yellowdog Updater Modified

SYNOPSIS
       yum [options] [command] [package ...]

DESCRIPTION
       yum  is  an interactive, automated update program which can be used for
       maintaining systems using rpm

       command is one of:
        * install package1 [package2] [...]
        * update [package1] [package2] [...]
        * check-update
        * upgrade [package1] [package2] [...]
        * remove | erase package1 [package2] [...]
        * list [...]
        * info [...]
        * provides | whatprovides feature1 [feature2] [...]
        * clean [ packages | headers | metadata | cache | dbcache | all ]
        * makecache
        * groupinstall group1 [group2] [...]
        * groupupdate group1 [group2] [...]
        * grouplist
        * groupremove group1 [group2] [...]
        * groupinfo group1 [...]
        * search string1 [string2] [...]
        * generate-rss [updates]

       Unless the --help or -h option is given, one of the above commands must
       be present.
6.uname
檢查你使用的核心版本
    -a, --all
              print all information, in the following order:
       -s, --kernel-name
              print the kernel name
       -n, --nodename
              print the network node hostname
       -r, --kernel-release
              print the kernel release
       -v, --kernel-version
              print the kernel version
       -m, --machine
              print the machine hardware name
       -p, --processor
              print the processor type
       -i, --hardware-platform
              print the hardware platform
       -o, --operating-system
              print the operating system
       --help display this help and exit
       --version
              output version information and exit

參考資料:
Linux 檔案命令精通指南(上) 
Linux 系統命令精通指南(下)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.