Linux RedHat 7 Common Commands Summary

Source: Internet
Author: User
Tags echo command parent directory

Linux RedHat 7 Common Commands Summary 、、、

-----------------------

Conquer Linux starting from the terminal

-------------------------------------

To clear the terminal in Linux:
Type clear
[Ctrl] + [l] = clear the terminal.
[Ctrl] + [u] = clear when moving forward

======================
Quick access to certain directories
Type cd
Find Files
Find command
======================
A test of the available shortcut keys REDHAT7
Some of the most useful shortcut keys:
[Ctrl] + [A] = move the cursor to the beginning of the line
[Ctrl] + [E] = move the cursor to the end of the line
[Ctrl] + [l] = clear terminal
[Ctrl] + [u] = clears the current line.

Exit = Exit
reset = Refresh < clean screen operation >
Ifconfig View native IP address
Fdisk–l viewing hard disk information under the system
Date View System Current time
More/proc/cpuinfo displaying CPU information for the current host
More/proc/modules viewing the kernel module information used in the system
CTRL + C returns to the system's initial command
LS lists all files and folders in the current directory
======================
Operation of the directory:
Cd.. Open the previous directory
CD/Open root directory
CD into the folder you want to open
PWD View the current directory where
DMESG Display the boot information of the system
Cat/proc/modules Viewing current system modules
======================
Some helpful information commonly used in the terminal:
Mans
Infor
Help
Whereis
Whatis
which
======================
LS//lists the files and folders of the current directory
Ls–a//Lists files and folders for the current directory, including hidden files
ls–l//Listing Details
LS directory//list files in a directory
======================
Du directory//view the total capacity of the directory and the capacity of subdirectories
Du–s Directory//view directory Total capacity
======================
Cd.. Go back to the top level directory
CD///back to root directory
CD//Home Owner Directory
======================
Switch the Redhat graphical interface to the character interface terminal: Ctrl+alt+f2-6
Redhat switch from the character terminal interface to the image interface Alt+f1 or press CTRL+ALT+F1
======================
Press Crtl+t first to open a terminal:
We hold ctrl+shift+t and open another terminal:
Two terminals input who am I
Use Who am I to query the PTS number of the endpoint for which the current user is logged on
======================
To view all current shell interpreters:
Enter Command Cat/etc/shells or chsh-l

Enter the command:
Ls-a/etc/
======================
ls command:
-all Show all files, including hidden files
-almost lists except
-author-l lists the author of each file
======================
LS followed by the command:
--HELP Display this help message and exit
--version display version information and exit
--size displays the size of each file allocation as a block number
--recursive recursively display subdirectories
--reverse reverse Order
--almost-all list except. And: Any item other than
--all Show all files, including hidden files
--author
======================
Ls-l
Displays the file's morphology, permissions, owner, file size, last modified time, full name of the file (file name + extension)
======================
Ls-r
The lowercase command is the name of the actual current user:

Ls-r
Recursively display subdirectories
======================
Ls-a
Displays all files and directories under the specified directory, and also lists all the "." Hidden files at the beginning
======================
Ls-d
Lists only the directory itself, not any data in the directory
======================
List the file formats under the directory:
Ls-p
Ls-p/etc
======================
To display the contents of a file:
Ls-al
Displays the contents of the data in a long string, as well as listing hidden files together
======================
Modified time for the full rendering profile:
Ls-al--full-time
======================
Alias command:
Alias
LL
======================
To list all files in a directory with the Echo (echoing) command and a wildcard character (*) parameter
echo *
======================
Use the echo command to list all directories only
echo */
======================
Lists all the files in a directory, including the hidden "." The file that starts with
Ls-a
======================
How to list directories in addition to "current directory." and "Parent directory ..." All files, including hidden files
Ls-a
======================
Print out the current directory contents using long format
Ls-l
======================
Prints the contents of a directory in a long-format list and displays hidden "point files"
Ls-la
======================
Do not want to list "current directory" and "Parent directory"
Ls-la
======================
Find the creator of each file
LS--author-l
======================
Print out non-display characters with escape characters
Ls-b
======================
Sorts the files in the directory by the modified time and displays the associated information
Ls-ltc
======================
Control the output color of ' ls ' command: –color=parameter ', parameter has three different values, "auto", "Always", "Never (colorless)"
The specific commands are as follows:
LS--color=never
LS--color=auto
LS--color=always
======================
Simply list the directory itself, not the contents of the directory
Ls-d
======================
CD is the abbreviation for Change directory, which is the instruction used to transform the working directory
======================
The shutdown command is used for system shutdown commands.
Use shutdown to scare users, but it is not really to shut down the machine!
-r--reboot Restart System
--help output a short help document and exit
======================
Shut down the system immediately
Shutdown-h now
Specify the time to shut down and send out a warning message to the currently logged in User:
Shutdown +5 "System would shutdown after 5 minutes"
======================


======================
Linux Redhat system and VM virtual machine download:
http://blog.csdn.net/yuyuntan/article/details/52280767
======================
System Installation:
Install Red Hat Enterprise Linux 7.2 installation RHLE7.2 operating system
Test this media & install Red Hat Enterprise Linux 7.2 Testing installation files and installing the RHLE7.2 operating system
Troubleshooting Repair Failure
======================
Reference to the website:
http://www.xuexila.com/diannao/xitong/

Linux RedHat 7 Common Commands Summary

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.