linux常用命令详解_第1页
linux常用命令详解_第2页
linux常用命令详解_第3页
linux常用命令详解_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1 COMMAND 命令 DESCRIPTION 注解 System information 系统信息 arch show architecture of machine 显示主机的体系结构 uname r show used kernel version 显示 kernel 版本信息 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 显示 CPU 信息 cat proc interrupts show interrupts 显示中断信息 cat proc meminfo verify memory use 核实内存使用情况 cat proc swaps show file s swap 显示文件 swap 情况 cat proc version show version of the kernel 显示 kernel 版本信息 cat proc net dev show network adpters and statistics 显示网络信息 cat proc mounts show mounted file system s 显示挂载系统信息 lspci tv display PCI devices 显示 PCI 设备 lsusb tv show USB devices 显示 USB 设备 date show system date 显示系统日期 cal 2007 show the timetable of 2007 显示 2007 年日历 date 041217002007 00 set date and time MonthDayhoursMinutesYear Second 设置时间和日期 格式 月日时分年 秒 clock w save changes on BIOS 保存 BIOS 设置 Shutdown Restart of a system and Logout 系统关机 重启或注销 shutdown h now shutdown system 2 关闭系统 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 进入 home 目录 cd go back one level 向上返回一个目录 cd go back two levels 向上返回两个目录 cd go to home directory 前往 home 目录 cd utente go to home directory 前往 home 目录 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 number 显示目录内包含有数字的文件 lstree show files and directories in a tree starting from root 以树形显示文件 mkdir dir1 create a directory called dir1 建立 dir1 目录 mkdir dir1 dir2 create two directories simultaneously 建立两个目录 mkdir p tmp dir1 dir2 create a directory tree 3 建立目录树 rm f file1 delete file called file1 删除名为 file1 的文件 rmdir dir1 delete directory called dir1 删除名为 dir1 的目录 rm rf dir1 remove a directory called dir1 and contents recursively 删除 dir1 目录及所含文件 rm rf dir1 dir2 remove two directories and their contents recursively 删除 dir1 dir 2 两个目录及所含文件 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 修改文件或目录的时间戳 格式 YYMMDDhhmm linux commands line v1 0 LinuxGuide it linux 命令详解翻译 moon File search 文件搜索 find name file1 search file and directory into root filesystem from 在 目录中搜索文件或目录 find user user1 search files and directories belonging to user1 搜索属于 user1 的文件和目录 find home user1 name bin search files with bin extension within directory home user1 在 home user1 目录内搜索包含有 bin 的文件 find usr bin type f atime 100 search bynary files are not used in the last 100 days 搜索 100 天未用的文件 find usr bin type f mtime 10 search files created or changed within 10 days 搜索 10 天内创建或更改的文件 find name rpm exec chmod 755 search files with rpm extension and modify permits 搜索带有修改属性的 rpm 的文件 find name rpm xdev search files with rpm extension ignoring removable partitions as cdrom pen drive etc 4 搜索全属性的 rpm 的文件 locate ps find files with the ps extension first run updatedb command 搜索扩展名为 ps 的文件 需要先运行 updatedb 命令 whereis halt show location of a binary file source or man 搜索 halt 的路径 which halt show full path to a binary executable 取得 halt 列表并寻找当 halt 作为命令给定时所运行的文件 linux commands line v1 0 LinuxGuide it linux 命令详解翻译 moon Mounting a Filesystem 挂载文件系统 mount dev hda2 mnt hda2 mount disk called hda2 verify existence of the directory mnt hda2 挂载名为 hda2 的硬盘设备 umount dev hda2 unmount disk called hda2 exit from mount point mnt hda2 first 取消挂载名为 hda2 的硬盘设备 fuser km mnt hda2 force umount when the device is busy 强行取消挂载设备 umount n mnt hda2 run umount without writing the file etc mtab useful when the file is read only or the hard disk is full 不记录挂载信息直接取消挂载 当硬盘为只读或硬盘已满时很实用 mount dev fd0 mnt floppy mount a floppy disk 挂载软盘 mount dev cdrom mnt cdrom mount a cdrom dvdrom 挂载 CDrom 或 DVDrom mount dev hdc mnt cdrecorder mount a cdrw dvdrom 挂载 CD RW 或 DVDrom mount dev hdb mnt cdrecorder mount a cdrw dvdrom 挂载 CD RW 或 DVDrom mount o loop file iso mnt cdrom mount a file or iso image 挂载一个文件或 ISO 光盘镜像 mount t vfat dev hda5 mnt hda5

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论