零零社区|百姓的网上家园-互动交流平台!(0.0)=^_^=(00社区)

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

350个linux命令详解

2013-4-5 15:50| 发布者: 123456000000| 查看: 14| 评论: 0

摘要: COMMAND 命令DESCRipTION 注解System information系统信息archshow architecture of machine 显示主机的体系结构uname -rshow used kernel version 显示kernel版本信息dmidecode -qshow hardware system components ...
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>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>linux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn
   COMMAND 命令DESCRIPTION 注解      File search
文件搜索
find / -name file1search file and directory into root filesystem from '/'
在 / 目录中搜索文件或目录find / -user user1search files and directories belonging to 'user1'
搜索属于user1的文件和目录find /home/user1 -name *.binsearch files with '. bin' extension within directory '/ home/user1'
在/home/user1目录内搜索包含有.bin的文件find /usr/bin -type f -atime +100search bynary files are not used in the last 100 days
搜索100天未用的文件find /usr/bin -type f -mtime -10search 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 -xdevsearch files with '.rpm' extension ignoring removable partitions as cdrom, pen-drive, etc.…
搜索全属性的.rpm的文件locate *.psfind files with the '.ps' extension - first run 'updatedb' command
搜索扩展名为.ps的文件
- 需要先运行updatedb命令whereis haltshow location of a binary file,source or man
搜索halt的路径which haltshow 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/hda2mount disk called hda2 - verify existence of the directory '/ mnt/hda2'
挂载名为hda2的硬盘设备umount /dev/hda2unmount disk called hda2 - exit from mount point '/ mnt/hda2' first
取消挂载名为hda2的硬盘设备fuser -km /mnt/hda2force umount when the device is busy
强行取消挂载设备umount -n /mnt/hda2run umount without writing the file /etc/mtab - useful when the file is read-only or the hard disk is full
不记录挂载信息直接取消挂载
- 当硬盘为只读或硬盘已满时很实用mount /dev/fd0 /mnt/floppymount a floppy disk
挂载软盘mount /dev/cdrom /mnt/cdrommount a cdrom / dvdrom
挂载CDrom或DVDrommount /dev/hdc /mnt/cdrecordermount a cdrw / dvdrom
挂载CD-RW或DVDrommount /dev/hdb /mnt/cdrecordermount a cdrw / dvdrom
挂载CD-RW或DVDrommount -o loop file.iso /mnt/cdrommount a file or iso image
挂载一个文件或ISO光盘镜像mount -t vfat /dev/hda5 /mnt/hda5mount a Windows FAT32 file system
挂载windows FAT32文件系统mount /dev/sda1 /mnt/usbdiskmount a usb pen-drive or Flash-drive
挂载USB闪存设备mount -t smbfs -o username=user,passWord=pass //winclient/share /mnt/sharemount a windows network share
挂载windows网络共享linux commands line v1.0 - LinuxGuide.it linux命令详解翻译 - moon-blog.cn

路过

雷人

握手

鲜花

鸡蛋

相关阅读

发表评论

最新评论

相关分类


Archiver|手机版|小黑屋|00社区

GMT+8, 2023-1-31 10:51 , Processed in 0.050563 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部