Very reliable Linux common commands

Source: Internet
Author: User
Tags ftp commands

Vim is to open the Vim editor, other editors also have VI (function without vim powerful), Nano,emacs and so on, feeling or vim is the most powerful, followed by VI, others will be worse. I listen to our teacher said, with the graphical interface itself will be the master laughed, if open a gpedit or kwrite that will be wasted ...
Common commands
LS, listing the files in the current directory, Ls-l is listing the details, ls-a lists the hidden files.
CD, change the directory. Clear, clear the screen command. Reset, resetting the terminal.
StartX, start the graphical interface. Fdisk-l, view the hard disk partition.
PS aux, which lists the system processes. Cat, display text. TAC, which displays text in reverse order.
OD, binary format displays text. WC, determine the size of the file and the number of characters and so on.
Aspell, check the spelling errors in the file. Less, paging through the file. More, similar to less, but not as short as function.
Reboot, restart the system. Poweroff, turn off the machine. Halt, is also shutdown, but need to manually cut off the power, not recommended to use. Shutdown-h now, immediately after the shutdown, the following can be replaced by time, you can specify the shutdown time instructions, it is said that a good system administrator should use this command. Shutdown-r now, similar to the previous one, is just a reboot. Sync, synchronize your hard drive data, and you should use it multiple times before restarting or shutting down the computer.
Locate, query the file location and use the UpdateDB command every once in a while to provide a search scope. Find, powerful query commands, many parameters. Find/-name *, this is the query/meaning of all the files below.
Whereis, I use him to judge where the command is, such as Whereis ls.
sudo, use root permissions in the case of a normal account, but you need to modify the/etc/sudoers file.
MV, move files or rename them. mv/etc/*/home/tom is the meaning of moving all/etc files to the Tom directory. MV A B, rename A to B. Of course, this is only an example, when the specific operation needs to look at the specific circumstances to determine.
CP, similar to MV, is the same format, except that it is not mobile and is copied. If you are copying a directory, you need to use the-R parameter, cp-r * * *.
RM, which is a delete instruction, similar to CP, remove directory Add-r, prompt to delete using-I
Useradd, add a new account. Userdel, delete an account.
passwd, set a password for an account. There are many parameters to implement other functions.
Chown, the change file belongs to. If chown tom.tom filename, change the file to the owning group Tom, the owner is also Tom.
chmod, change the permissions of the file, just say simple change, chmod 777 file name, the file will have all the permissions.
Chkconfig--list, used to observe the status of the service, Chkconfig--level? Service name on/off, open or close the service,? Represents the run level.
Init (1,2,3,4,5,6) is used to switch between 6 runlevel.
RunLevel View the current runlevel.
BC, a calculator. Date, which displays the time. Cal Displays the calendar.
In the case of Redhat, there is setup, which is used to set up some system-related, NTSYSV, dedicated to setting up the service, so you don't have to chkconfig.
TR, compressing or replacing characters. DH, calculates the size of the catalog. DF, which displays information about the file system.
Free to display the memory CPU usage. Top, dynamic observation process.
TAR-CZVF, create the *.tar.gz compression package, TAR-XZVF, unzip this compression pack.
TAR-CJVF, created is *.tar.bz2, decompression is TAR-XJVF
RPM-IVH, install RPM package, RPM-E unload RPM package
Who, observe the login situation. whoami,who am I, two commands there are some differences, but almost. ID that is used to view the account information. W, also view the login situation, more detailed.
echo, used to display environment variables, and so on, example Echo $LANG.
History, which shows the command histories. Mount hangs on the device. Umount, uninstall the device. DMESG, displays the startup information. Yum, the command to use when updating.
SSH,SSH Login. Telnet,telnet Login. There are also FTP commands.
Gcc,g++,java,javac, are all commands for programming. Make, if there is makefile, can be compiled with him.
All of the above is I think of the future to play out, inevitably there are mistakes, and the order seems not good, please forgive me.
To add, because of the installation package, not all commands may appear, if you need some features need to install the corresponding package files.

Very reliable Linux common commands

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.