国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > Linux > 正文

350個(gè)linux命令詳解

2024-07-26 00:36:54
字體:
供稿:網(wǎng)友
COMMAND 命令DESCRipTION 注解
System information
系統(tǒng)信息
archshow architecture of machine
顯示主機(jī)的體系結(jié)構(gòu)
uname -rshow used kernel version
顯示kernel版本信息
dmidecode -qshow hardware system components - (SMBIOS / DMI)
顯示硬件系統(tǒng)部件
hdaparm -i /dev/hdadisplays the characteristics of a hard-disk
顯示某一硬盤特點(diǎn)
hdparm -tT /dev/sdaperform test reading on a hard-disk
執(zhí)行某一硬盤讀取測試
cat /PRoc/cpuinfoshow information CPU info
顯示CPU信息
cat /proc/interruptsshow interrupts
顯示中斷信息
cat /proc/meminfoverify memory use
核實(shí)內(nèi)存使用情況
cat /proc/swapsshow file(s) swap
顯示文件swap情況
cat /proc/versionshow version of the kernel
顯示kernel版本信息
cat /proc/net/devshow network adpters and statistics
顯示網(wǎng)絡(luò)信息
cat /proc/mountsshow mounted file system(s)
顯示掛載系統(tǒng)信息
lspci -tvdisplay PCI devices
顯示PCI設(shè)備
lsusb -tvshow USB devices
顯示USB設(shè)備
dateshow system date
顯示系統(tǒng)日期
cal 2007show the timetable of 2007
顯示2007年日歷
date 041217002007.00 set date and time
- MonthDayhoursMinutesYear.Second
設(shè)置時(shí)間和日期 - 格式:月日時(shí)分年.秒
clock -w
save changes on BIOS
保存BIOS設(shè)置
linux commands line v1.0 - LinuxGuide.it linux命令詳解翻譯 - moon-blog.cn

        
COMMAND 命令DESCRIPTION 注解
Shutdown, Restart of a system and Logout
系統(tǒng)關(guān)機(jī),重啟或注銷
shutdown -h nowshutdown system
關(guān)閉系統(tǒng)
init 0
shutdown -r hours:minutes planned shutdown of the system
定時(shí)關(guān)機(jī)
shutdown -ccancel a planned shutdown of the system
取消定時(shí)關(guān)機(jī)
shutdown -r nowreboot
重啟系統(tǒng)
reboot
logoutleaving session
注銷用戶
linux commands line v1.0 - LinuxGuide.it linux命令詳解翻譯 - moon-blog.cn

        
COMMAND 命令DESCRIPTION 注解
Files and Directory
文件及目錄
cd /homeenter to directory '/ home'
進(jìn)入/home目錄
cd ..go back one level
向上返回一個(gè)目錄
cd ../..go back two levels
向上返回兩個(gè)目錄
cdgo to home directory
前往/home目錄
cd ~utentego to home directory
前往/home目錄
cd -go to previous directory
進(jìn)入先前所在目錄
pwdshow the path of work directory
顯示目錄路徑
lsview files of directory
顯示目錄內(nèi)包含的文件
ls -Fview files of directory
顯示目錄內(nèi)包含的文件
ls -lshow details of files and directory
顯示目錄內(nèi)文件的詳細(xì)信息
ls -ashow hidden files
顯示隱藏文件
ls *[0-9]*show files and directory containing number
顯示目錄內(nèi)包含有數(shù)字的文件
lstreeshow files and directories in a tree starting from root
以樹形顯示文件
mkdir dir1create a directory called 'dir1'
建立dir1目錄
mkdir dir1 dir2create two directories simultaneously
建立兩個(gè)目錄
mkdir -p /tmp/dir1/dir2create a directory tree
建立目錄樹
rm -f file1delete file called 'file1'
刪除名為file1的文件
rmdir dir1 delete directory called 'dir1'
刪除名為dir1的目錄
rm -rf dir1remove a directory called 'dir1' and contents recursively
刪除dir1目錄及所含文件
rm -rf dir1 dir2remove two directories and their contents recursively
刪除dir1 dir 2兩個(gè)目錄及所含文件
mv dir1 new_dirrename / move a file or directory
重命名/移動(dòng) 文件或文件夾
cp file1 file2copying a file
復(fù)制文件
cp dir/* .copy all files of a directory within the current work directory
復(fù)制目錄及目錄內(nèi)所有文件到當(dāng)前目錄
cp -a /tmp/dir1 .copy a directory within the current work directory
復(fù)制目錄到當(dāng)前目錄
cp -a dir1 dir2copy a directory
復(fù)制目錄
ln -s file1 lnk1 create a symbolic link to file or directory
建立文件或目錄的符號鏈
ln file1 lnk1create a physical link to file or directory
建立文件或目錄的物理鏈
touch -t 0712250000 fileditestmodify timestamp of a file or directory
- (YYMMDDhhmm)
修改文件或目錄的時(shí)間戳
- 格式:YYMMDDhhmm
linux commands line v1.0 - LinuxGuide.it linux命令詳解翻譯 - moon-blog.cn

        
COMMAND 命令DESCRIPTION 注解
File search
文件搜索
find / -name file1search file and directory into root filesystem from '/'
在 / 目錄中搜索文件或目錄
find / -user user1search files and directories belonging to 'user1'
搜索屬于user1的文件和目錄
find /home/user1 -name *.binsearch files with '. bin' extension within directory '/ home/user1'
在/home/user1目錄內(nèi)搜索包含有.bin的文件
find /usr/bin -type f -atime +100search bynary files are not used in the last 100 days
搜索100天未用的文件
find /usr/bin -type f -mtime -10search files created or changed within 10 days
搜索10天內(nèi)創(chuàng)建或更改的文件
find / -name *.rpm -exec chmod 755 {} ;search files with '.rpm' extension and modify permits
搜索帶有修改屬性的.rpm的文件
find / -name *.rpm -xdevsearch files with '.rpm' extension ignoring removable partitions as cdrom, pen-drive, etc.…
搜索全屬性的.rpm的文件
locate *.psfind files with the '.ps' extension - first run 'updatedb' command
搜索擴(kuò)展名為.ps的文件
- 需要先運(yùn)行updatedb命令
whereis haltshow location of a binary file,source or man
搜索halt的路徑
which haltshow full path to a binary / executable
取得halt列表并尋找當(dāng)halt作為命令給定時(shí)所運(yùn)行的文件
linux commands line v1.0 - LinuxGuide.it linux命令詳解翻譯 - moon-blog.cn

        
COMMAND 命令DESCRIPTION 注解
Mounting a Filesystem
掛載文件系統(tǒng)
mount /dev/hda2 /mnt/hda2mount disk called hda2 - verify existence of the directory '/ mnt/hda2'
掛載名為hda2的硬盤設(shè)備
umount /dev/hda2unmount disk called hda2 - exit from mount point '/ mnt/hda2' first
取消掛載名為hda2的硬盤設(shè)備
fuser -km /mnt/hda2force umount when the device is busy
強(qiáng)行取消掛載設(shè)備
umount -n /mnt/hda2run umount without writing the file /etc/mtab - useful when the file is read-only or the hard disk is full
不記錄掛載信息直接取消掛載
- 當(dāng)硬盤為只讀或硬盤已滿時(shí)很實(shí)用
mount /dev/fd0 /mnt/floppymount a floppy disk
掛載軟盤
mount /dev/cdrom /mnt/cdrommount a cdrom / dvdrom
掛載CDrom或DVDrom
mount /dev/hdc /mnt/cdrecordermount a cdrw / dvdrom
掛載CD-RW或DVDrom
mount /dev/hdb /mnt/cdrecordermount a cdrw / dvdrom
掛載CD-RW或DVDrom
mount -o loop file.iso /mnt/cdrommount a file or iso image
掛載一個(gè)文件或ISO光盤鏡像
mount -t vfat /dev/hda5 /mnt/hda5mount a Windows FAT32 file system
掛載windows FAT32文件系統(tǒng)
mount /dev/sda1 /mnt/usbdiskmount a usb pen-drive or Flash-drive
掛載USB閃存設(shè)備
mount -t smbfs -o username=user,passWord=pass //winclient/share /mnt/sharemount a windows network share
掛載windows網(wǎng)絡(luò)共享
linux commands line v1.0 - LinuxGuide.it linux命令詳解翻譯 - moon-blog.cn

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 临邑县| 习水县| 梨树县| 榆中县| 东明县| 望城县| 商城县| 石城县| 南岸区| 乌鲁木齐县| 五河县| 鲁山县| 旬邑县| 无锡市| 辉南县| 安平县| 武强县| 丽水市| 四平市| 白银市| 麟游县| 灵宝市| 永康市| 永清县| 东源县| 舒兰市| 翁源县| 太康县| 佛教| 湖口县| 玉树县| 寻乌县| 安丘市| 连州市| 营山县| 田林县| 名山县| 车险| 泗洪县| 景泰县| 青龙|