Linux 常用命令彙編(一)

2021-03-31 08:56:30 字數 2371 閱讀 6090

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] [***mand] [package ...]

description

yum  is  an interactive, automated update program which can be used for

maintaining systems using rpm

***mand 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 ***mands 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 ***work 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

彙編常用命令

一 程式除錯 1 用文字編輯器建立源程式,副檔名.asm,例如1.asm 2 用masm生成1.obj檔案 3 用link生成1.exe檔案 二 用debug.exe除錯 1 用cmd進入命令列模式 開始選單,鍵入cmd 2 用命令操作進入你的檔案 cd c masm5.0 結果為 c masm5....

linux常用命令 一

cal y 顯示全年的日曆 vipw 相當於 vim etc passwd vigr 相當於 vim etc group df h或fdisk l 檢視分割槽 uname a 檢視系統核心版本號及系統名稱 rpm q kernel 查詢核心版本 find name txt print 從當前目錄查詢...

Linux常用命令(一)

1 更新命令 2 安裝新軟體 sudo apt get install mysql server。接著,apt會對照軟體列表查詢,發現匹配的mysql server 5.0軟體包。它會計算所有的倚賴關係,提供乙個報告,報告中包括。並提示 y n 報告中包括suggested package和reco...