350个linux命令详解

COMMAND 命令DESCRIPTION 注解System information
系统信息archshow architecture of machine
显示主机的体系结构uname -rshow used kernel version
显示kernel版本信息dmidecode -qshow hardware system components - (SMBIOS / DMI)
显示硬件系统部件hdaparm -i /dev/hdadisplays the characteristics of a hard-disk
显示某一硬盘特点hdparm -tT /dev/sdaperform test reading on a hard-disk
执行某一硬盘读取测试cat /proc/cpuinfoshow information CPU info
显示CPU信息cat /proc/interruptsshow interrupts
显示中断信息cat /proc/meminfoverify memory use
核实内存使用情况cat /proc/swapsshow file(s) swap
显示文件swap情况cat /proc/versionshow version of the kernel
显示kernel版本信息cat /proc/net/devshow network adpters and statistics
显示网络信息cat /proc/mountsshow mounted file system(s)
显示挂载系统信息lspci -tvdisplay PCI devices
显示PCI设备lsusb -tvshow USB devices
显示USB设备dateshow system date
显示系统日期cal 2007show the timetable of 2007
显示2007年日历date 041217002007.00 set date and time
- MonthDayhoursMinutesYear.Second
设置时间和日期 - 格式:月日时分年.秒clock -w
save changes on BIOS
保存BIOS设置linux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn
COMMAND 命令DESCRIPTION 注解Shutdown, Restart of a system and Logout
系统关机,重启或注销shutdown -h nowshutdown system
关闭系统init 0 shutdown -r hours:minutes planned shutdown of the system
定时关机shutdown -ccancel a planned shutdown of the system
取消定时关机shutdown -r nowreboot
重启系统rebootlogoutleaving session
注销用户linux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn
COMMAND 命令DESCRIPTION 注解Files and Directory
文件及目录cd /homeenter to directory "/ home"
进入/home目录cd ..go back one level
向上返回一个目录cd ../..go back two levels
向上返回两个目录cdgo to home directory
前往/home目录cd ~utentego to home directory
前往/home目录cd -go to previous directory
进入先前所在目录pwdshow the path of work directory
显示目录路径lsview files of directory
显示目录内包含的文件ls -Fview files of directory
显示目录内包含的文件ls -lshow details of files and directory
显示目录内文件的详细信息ls -ashow hidden files
显示隐藏文件ls *[0-9]*show files and directory containing number
显示目录内包含有数字的文件lstreeshow files and directories in a tree starting from root
以树形显示文件mkdir dir1create a directory called "dir1"
建立dir1目录mkdir dir1 dir2create two directories simultaneously
建立两个目录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两个目录及所含文件mv dir1 new_dirrename / move a file or directory
重命名/移动 文件或文件夹cp file1 file2copying a file
复制文件cp dir/* .copy all files of a directory within the current work directory
复制目录及目录内所有文件到当前目录cp -a /tmp/dir1 .copy a directory within the current work directory
复制目录到当前目录cp -a dir1 dir2copy a directory
复制目录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)
修改文件或目录的时间戳
- 格式:YYMMDDhhmmlinux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn
COMMAND 命令DESCRIPTION 注解File search

推荐阅读