隨著Linux越來(lái)越普及、應(yīng)用越來(lái)越成熟,基本上服務(wù)都部署在linux服務(wù)器,Linux基本的操作命令必須得會(huì)linux常用命令linux常用命令,不信就去看招聘網(wǎng)站對(duì)測(cè)試人員的需求。如果對(duì)linux命令記的很混亂,不著急,認(rèn)真看此帖就可以了。
●線上查詢及幫助命令(1 個(gè))
help 如:mkdir --help
●文件和目錄操作命令(12 個(gè))
ls tree pwd mkdir rmdir cd touch cp mv rm ln find
●查看文件及內(nèi)容處理命令(21 個(gè))
cat tac more less head tail cut split paste sort uniq wc iconv dos2unix file diff vimd ff chattr lsattr rev grep
●文件壓縮及解壓縮命令(4 個(gè))
tar unzip gzip zip
●信息顯示命令(12 個(gè))
stat uptime 3621。/dev/sdb4: unix fast file system [v2](little-endian) last mounted on /var/log, last written at tue nov 18 11:16:432014, clean flag 1, readonly flag 0, number of blocks 4909865, number of datablocks 4753848, number of cylinder groups 31, block size 32768, fragment size4096, average file size 16384, average number of files in dir 64, pendingblocks to free 0, pending inodes to free 0, system-wide uuid 0, minimumpercentage of free blocks 8, time optimization。etdctrl.exe is considered to be trustworthy. if the file is not located in the standard path, this may indicate the presence of a virus. scan your pc with an up-to-date virus scanner. we recommend using the free antivirus software avg anti-virus free.。
●搜索文件命令(4 個(gè))
which find whereis locate
●用戶管理命令(10 個(gè))
useradd usermod userdel groupadd passwd chage id su visudo sudo
●基礎(chǔ)網(wǎng)絡(luò)操作命令(10 個(gè))
telnet ssh scp wget ping route ifconfig ifup ifdown netstat
●深入網(wǎng)絡(luò)操作命令(6 個(gè))
lsof route mail mutt nslookup dig
●有關(guān)磁盤文件系統(tǒng)的命令(8 個(gè))
mount umount df du fsck dd dumpe2fs dump
●關(guān)機(jī)和查看系統(tǒng)信息的命令(3個(gè))
shutdown halt init