Linux命令行大全 v1.0放出
时间:2008-01-06 09:14:26 来源:注册机之家 作者:软件新闻
Linux的命令行操作简洁效率高,就是数量有点多.
linuxguide.it整理了多达350条以上的Linux命令行命令,并给出了相应的说明可供您速查用.
无论是Linux新手还是老鸟都应该留一份备用,毕竟日常工作中我们不能带着参考书走. 引自www.zhuceji.org
| COMMAND | DESCRIPTION |
| System information | |
| arch | show architecture of machine |
| uname -r | show used kernel version |
| dmidecode -q | show hardware system components - (SMBIOS / DMI) |
| hdaparm -i /dev/hda | displays the characteristics of a hard-disk |
| hdparm -tT /dev/sda | perform test reading on a hard-disk |
| cat /proc/cpuinfo | show information CPU info |
| cat /proc/interrupts | show interrupts |
| cat /proc/meminfo | verify memory use |
| cat /proc/swaps | show file(s) swap |
| cat /proc/version | show version of the kernel |
| cat /proc/net/dev | show network adpters and statistics |
| cat /proc/mounts | show mounted file system(s) |
| lspci -tv | display PCI devices |
| lsusb -tv | show USB devices |
| date | show system date |
| cal 2007 | show the timetable of 2007 |
| date 041217002007.00 | set date and time - MonthDayhoursMinutesYear.Secondi |
| clock -w |
save changes on BIOS |
| Shutdown, Restart of a system and Logout | |
| shutdown -h now | shutdown system |
| init 0 | |
| shutdown -r hours:minutes & | planned shutdown of the system |
| shutdown -c | cancel a planned shutdown of the system |
| shutdown -r now | reboot |
| reboot | |
| logout | leaving session |
| Files and Directory | |
| cd /home | enter to directory '/ home' |
| cd .. | go back one level |
| cd ../.. | go back two levels |
| cd | go to home directory |
| cd ~utente | go to home directory |
| cd - | go to previous directory |
| pwd | show the path of work directory |
| ls | view files of directory |
| ls -F | view files of directory |
| ls -l | show details of files and directory |
| ls -a | show hidden files |
| ls *[0-9]* | show files and directory containing numbers |
| lstree | show files and directories in a tree starting from root |
| mkdir dir1 | create a directory called 'dir1' |
| mkdir dir1 dir2 | create two directories simultaneously |
| mkdir -p /tmp/dir1/dir2 | create a directory tree |
| rm -f file1 | delete file called 'file1' |
| rmdir dir1 | delete directory called 'dir1' |
| rm -rf dir1 | remove a directory called 'dir1' and contents recursively |
| rm -rf dir1 dir2 | remove two directories and their contents recursively |
| mv dir1 new_dir | rename / move a file or directory |
| cp file1 file2 | copying 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 dir2 | copy a directory |
| ln -s file1 lnk1 | create a symbolic link to file or directory |
| ln file1 lnk1 | create a physical link to file or directory |
| touch -t 0712250000 fileditest | modify timestamp of a file or directory - (YYMMDDhhmm) |



文章评论
共有 0位注册机之家成员发表了评论 查看完整内容