The shell command in Linux is usually the execution step: the user enters the command in the terminal, the system kernel reads the value of the environment variable in the current user's environment variable path The value of the variable is the path of the command, the command path is more than one, The system then matches the command file to find from left to right in these paths until it is found and executed, and when the command is executed, the
The previous blog we explained the Linux file and directory processing commands, or Laosheng Changtan, for beginners, we do not need to fully remember the command of the detailed syntax, remember what the command can be done, and then need to check the good, with the more we will naturally remember. In this blog we go on to the Linux
Network Configuration Common commands Introduction:The function of the network kernel in Linux1. Execute command generated address:(effective immediately after execution, service restart after the failure)RHEL5:/etc/modprobe.confRHEL6:/etc/udev/rules.d/70-persistent-net.rulesAliasIfconfig [EthX]-A: Shows the configuration of all interfacesIfconfig EthX Ip/mask [Up|down] immediately after the configuration,
must be included and put to the end with a file name. Tar-xvf source.tar.gz: You can try it with less z. The effect is the same as above.
(5) view disk storage usage:Du; view the storage usage of the file system: df.
Du-s or -- summarize only displays the total, and only lists the last added total value. Du-h is in the unit of K, M, and G to improve information readability. Df-h is measured in K, M, and G units to improve information readability. Df-T x display file system type
(6) Search for
Common Linux commands (6) -- Network Communication commands 1. command name: writewww.2cto.com execution permission: all users function description: send information to another user, with CTRL + D as the concluding remarks: write lt; user name gt; root sends information to the luxh user [root @ l...
Common
Common Linux commands (version 2)-file management commandsFile Management commands
Not recommended: Follow books like command book!
There are about 200 Common commands.
File naming rules:
A) All characters except '/' are valid!
B) It is best not to use these characters.
1. s
File Management CommandsNot recommended: Follow the book like the Command encyclopedia to learn!The usual commands are about Ten. File naming rules:A) all characters except '/' are legal! b) These characters are best not1, Spacecharacter, tab, BACKSPACE2. Connector3. Special symbol:@#¥$ ()- etC) Avoid use . as a start, use . start with file hidingD) Note: Case sensitive, similar to C language, while Window
-tv # List of all PCI devicesIx. LSUSB-TV # Lists Linux System Information commands for all USB devicesX. LSMOD # List of loaded kernel modulesModule Size used BYAUTOFS4 26513 3SUNRPC 260521 18021q 253170 Garp 7152 18021QSTP 2218 1GARPLLC 5546 2Garp,stpcpufreq_ondemand 10544 2POWERNOW_K8 18171 1Freq_table 4936 2Cpufreq
(displayed through the progress bar), the current speed, all transmitted data, and estimated remaining time.
"To use PV, you need to use appropriate options to place it in the pipeline between two processes. The standard input of the command will be passed in through the standard output, and the progress will be output to the standard error output ."
The preceding explanation is from the help page of the command.
Download and install
For Debian opera
One, the Linux CPU sizeCat/proc/cpuinfo |grep "model name" cat/proc/cpuinfo |grep "Physical ID"Description: Detailed information about each CPU can be seen in/proc/cpuinfo under Linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo. It is often mistaken for a two single-core CPU.You should actually differentiate between single-core and dual-core by physical Processor ID. The physical Process
In linux, view all users and all user groups (including how to add) groups, view the group members of the currently logged-on users, groups gliethttp, and view the group of gliethttp users, view the current username/etc/group in the whoami group. The file contains all usernames in the/etc/shadow and/etc/passwd systems.
Note: If you want to delete all the sessions on the server, restarting the PHP service will not solve the problem, the PHP session is persistent.Effective Solutions:Delete all files under/tmp (the default PHP session file is stored in/tmp, direct this directory, if you have changed the directory of the PHP session into the corresponding directory delete)After deleting the website will be an error! Visit the
In linux, commands such as ifconfig and shutdown cannot use the _ enable Shell command Java code. Why cannot I use the ifconfig command in RedHat Linux 5? After installing RedHat Linux 5, I use some commands on the terminal, for example, ifcinfig checks the IP address of the
We use the Accton command to turn process statistics on or off, and if not with any parameters, it means to turn off process statistics. Its main parameters are as follows:(1)-V or--version, indicating that the version information is displayed and exited.(2)-H or--HELP, print help information.In the Linux system to start process statistics must use the Accton command, and must use the root identity to run, the Accton command in the form of Accton file
commands about disk space
Command
Function
Mount
Mount File System
Umount
Uninstalling a file system mounted on a mount
Df
Check the disk space of each hard disk partition and the mounted file system
Du
Show file directory and size
Fsck
Mainly to check and repair the Linux file system
file, here I use Phpadmin to do the test. The phpmyadmin-3.3.8.1-all-languages.7z in the current directory is used here by default-R means recursive decompression of all subfolders-O is the specified directory to extract to,after-O is no space, direct access to the directory. This is a point to note. 2.2 Compressed Files/folders7za A-t7z-r mytest.7z/opt/phpmyadmin-3.3.8.1-
the system management has the most important content, it is best to let users have a separate user group, or the user under the permissions of the file is set to fully private In addition, the root user group is generally not easy to add ordinary users to enter,2,/etc/group content specific analysisThe content of/etc/group includes user group, user group password, GID, and user group, a record of each user group, in the following format: group_name:passwd:GID:user_listeach record in/etc/grou
.② file belongs to group: a user can belong to more than one group, but it can only have one default group . So when a file is created, its owning group can only be the default group that the user belongs to(2) Umask command
Command name
Umask (The user file-creation mask)
Command path
Shell built-in commands
Execute permissions
All Users
Common Linux commands (1) -- File Processing Command format: Command-option parameter example: ls-la/etc description: www.2cto. com1) when there are multiple options, you can write them together. 2) two special directories. and .., represents the current... common Linux commands (1) -- File Processing Command format: C
Linux svn commands and svn commands
Check whether svn: svnserve -- version is installed
Close svn service: killall svnserve
Create svn Library: svnadmin create/opt/svn/repos
Configure Automatic Start: Put svnserve-d-r/opt/svn/repos in the last line of/etc/rc. d/rc. local.
Start svn: svnserve-d-r/opt/svn/repos
If svn is already running, run it on another port: svn
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.