手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>操作系统>Linux>列表

350个linux命令详解

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!
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.…
搜索全属性的.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-blog.cn
COMMAND 命令 DESCRIPTION 注解
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 mount a Windows FAT32 file system
挂载windows FAT32文件系统
mount /dev/sda1 /mnt/usbdisk mount a usb pen-drive or flash-drive
挂载USB闪存设备
mount -t smbfs -o username=user,password=pass //winclient/share /mnt/share mount a windows network share
挂载windows网络共享
linux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!