linux常用命令大全(Linux command Daquan) Linux command Daquan system information Arch displays processorarchitecture Processorarchitecture displaymachines kernelversion usingDmidecode displayshardware system components DMI)Hdparm /dev/hdalists architecturefeatures diskHdparm -tT /dev/sda performs testability reading operations diskCat /proc/cpuinfo displays information about CPU info Cat /proc/interrupts display interrupt Cat /proc/meminfo checksum memory usage Cat /proc/swaps shows which swap usedCat /proc/version displays kernelversion Cat /proc/net/dev display network adapter statisticsCat /proc/mounts displays filesystem hasbeen loaded Lspci -tv lists PCI devices lsusb-tv displays USBdevice Date display system date Cal 2007 displays 2007Date 41217002007 sets month,day, year, second Clock savestime changes BIOSShutdown (system shutdown, restart logout)Shutdown nowshutdown system shutsdown shutsdown closingsystem scheduledtime Shutdown cancelsclosing scheduledtime Shutdown nowrestart Rebootrestart Logoutlogout Files directoriesCD /home home''directory entry CD。
handle rootdirectory。null, // rootdirectory。obj_ar.rootdirectory=0。
Copy all filesfrom currentworking directory CP /tmp/dir1。Copy currentworking directory CP dir1dir2 copies directoryLn file1lnk1 creates softlink directoryLn file1 lnk1 creates physicallink directoryTouch 0712250000file1 modifies (YYMMDDhhmm)File file1 outputs MIMEtype textIconv listsknown encoding Iconv toEncodinginputFile outputFilecreates newfrom giveninput file assumingtoEncoding。 encodedfromEncoding Find。-maxdepth -name *。jpg -print -exec convert "-resize80x60" thumbs/{} batchresize files currentdirectory sendthem thumbnailsdirectory (requires convert from Imagemagick) File search Find -namefile1 began rootfile system search directoriesfrom -useruser1 searches directoriesbelonging user'user1'Find /home/user1 -name \*。