Some common basic commands: uname-a view kernel version ls-al Show all file properties pwd display current path cd-return the last Directory cd ~ Return to the home directory dates settings Some common basic commands:Uname-a view kernel version ls-al display all file properties pwd display current path cd-return the last Directory cd ~ Return home directory date s set time, date cal show calendar cal 2006bc calculator with man & info help manual locale show current font locale-a all available fonts/etc/sysconfig/i18n set file LANG = en use the English font sync to write data to the hard drive shutdonw-h now & half & poweroff shutdown reboot restart startx & init 5 to enter the graphic interface/work &? Click work to search for the document content. change the chgrp testing of the archive Group to install. logchown changed its owner chown root: root install. logchmod changed the attribute chmod 777 install. log read = 4 write = 2 execute = 1cp copy cp filenamerm delete file rm-rf filename force delete file rmdir delete folder mv move mv 123.txt 222.txt rename mkdir create folder touch create file update current time cat is displayed starting from the first line. cat | more pages. nl adds the row number more & less to the content to flip the head-n filename to display the tail-N filename to display the last n rows. content od display non-pure document df-h display partition space du display directory or file size fdisk partition settings fdisk-l/dev/hda display hard disk partition status mkfs establish various file systems mkfs-t ext3/dev/ram15fsck check and repair LINUX file ln hard link ln-s software link whereis search command locate find/-name "***. * ** "which viewing tool whoami display current user gcc-v view GCC version chattr + I filename prohibit deletion chattr-I filename cancel disable lsattr display hidden file attribute updatedb update database mke2fs format mkfs -t ext3dd if =/etc/passwd of =/tmp/passwd. bak backup mount list all system partitions mount-t iso9660/dev/cdrom/mnt/cdrom mount disc mount-t vfat/dev/fd0/mnt/floppy mount floppy disk mount-t vfat -o iocharset = utf8, umask = 000/dev/hda2/mnt/hda2 mount fat32 partition mount-t ntfs-o nls = utf8, umask = 000/dev/hda3/mnt/hda3 Mount ntfs partition Linux-NTFS Project: linux-ntfs.sourceforge.net/"> http://linux-ntfs.sourceforge.net/umount /Mnt/hda3 mounted ifconfig display or set network device service network restart Nic ifdown eth0 disable Nic ifup eth0 enable Nic clear screen history! 55. run the 55th command stty to set the terminal stty-afdisk/mbr to delete GRUBat. run the regular command crontab cyclically only once. [e] edit, [l] display, [r] delete the task & run the program tar-zxvf 123.tar.gz in the background & run jobs in the background. watch the program jobs-lfg paused in the background and set the background program to fg n in the foreground to a number, you can specify the program bg to enable the worker to run the kill termination process in the background. kill-9 PID [9] is forcibly terminated, and [15] ends normally, [l] list available kill signal ps aux View background program top-d 2 update every two seconds top-d 2-p10604 view a PIDtop-B-n 2 >/tmp/top.txt perform the top information twice, then output the result to/tmp/top.txt pstree. the tree chart shows the program [A] connected with ASCII, and the PID is listed in [u, [p] list account killall to delete a service killall-9 httpdfree display memory status free-m display in MB uptime display current system boot time netstat display network status netstat-tulnp find the current the system displays the boot information demsg for the network connection that has been monitored and its PIDdmesg | morenice sets the priority nice-n-5 vi & uses root to give a nice value of-5, run virenice to adjust priority runlevel display current runleveldepmod analysis of dependency of loaded modules lsmod show loaded system modules modinfo display information of kernel module insmod loading module modprobe automatic processing and loading module rmmod delete Module chkconfig check, set various system services chkconfig -- list to list various service statuses ntsysv set various system services cpio backup file compression commands :*. files compressed by the Z compress program ;*. files compressed by the bz2bzip2 program ;*. files compressed by the gz gzip program ;*. the data packaged by the tartar program has not been compressed. the files packaged by the * .tar.gz tar program, the compressed compress filename File after gzip is added with [-d] uncompressgzip filename compression and [-d] decompress zcat 123.gz to view the compressed file content bzip2-z filename compression and [-d] decompress bzcat filename.bz2 to view the compressed file. tar-cvf/home/123.tar/etc, uncompress tar-xvf 123.tar uncompress the package tar-zxvf/home/123.tar.gz and decompress tar-jxvf/home/123.tar.bz2 with bzip2 to unzip tar-ztvf/tmp/etc.tar.gz- covB> [file | device] cpio-icduv <[file | device] Restoration
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service