Summary of common Linux commands (5) disk management and common linux commands
Disk Management
Command
Option
Annotation
Example
Df
[Option]
Display disk space usage
Displays the disk
Refresh a simple passwd file for linux commands and passwd for linux commands
**************************************** ******************************** ***************************************
Original Works are from the blog of "Deep Blue blog". You
Common linux commands and common linux commands
1. Change the group to which the chgrp belongs:
For example, change the group of install. log to users.
chgrp users install.log
ls –l
View results: root users 68495 25 install. log
Owner
002day -- common linux commands and common linux commands
Exit terminal command: exit
Command to disable Linux: init 0
How to switch the virtual terminal: Ctrl + Alt + F [1 ~ 6]
Who command: check how many terminals are open
Whoami command: Get
Common Linux commands (30) and common linux commands
The cal command can be used to display calendars in the Gregorian calendar. The Gregorian calendar is an international calendar, also known as the Gregorian calendar. The "Gregorian Calendar",
Common Linux commands () and common linux commands
In Linux, The grep command is a powerful text search tool that uses regular expressions to search for text and print Matching lines. Grep stands for Global Regular Expression Print, which indicates
Common Linux commands (27th) and common linux commands
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining
Common Linux commands (24) and common linux commands
Chown changes the owner of a specified file to a specified user or group. The user can be the user name or user ID, and the group can be the group name or group ID; files are separated by spaces
Common Linux commands (16) and common linux commands
The whereis command can only be used for searching program names (where is the program installed ?), Only binary files (parameter-B), man description files (parameter-m), and source code files
Common Linux commands (15th) and common linux commands
We often search for a file in linux, but do not know where it is stored. You can use the following commands to search:
Which: view the location of the executable file.Whereis view the file
Common Linux commands (13) and common linux commands
The head and tail are just as easy to understand as their names. They are used to display a certain number of text blocks at the beginning or end, and the head is used to display the beginning of
Common Linux commands (10) and common Linux commands (
The nl command is used in linux to calculate the row number in the file. Nl can automatically add the row number to the output file content! The default result is a little different from cat-n.
Basic linux commands and basic linux commands
Shutdown-h now shut down immediately
Shutdown-r now restart the computer
Reboot now restarts the computer
Logout user logout
Vi editor usage:
1) vi file name
2) Enter I to enter the command mode]
3)
Accumulate common linux commands and common linux commandsAccumulate common linux commands
Record problems encountered in daily life:
Linux files contain ^ M The shell command tr can be used for removal. The specific command is as follows:
cat -
Tcpdump for linux commands and tcpdump for linux commands
Tcpdump can completely intercept the "Header" of the packets transmitted in the network for analysis. It supports filtering at the network layer, protocol, host, network, or port. And
This article mainly introduces how to use Linux commands to execute and run PHP scripts. The syntax in the PHP language is very similar to that in the language of Perl, which has some PHP features of CJava and runtime, the current version is stable
In general, php is rarely used to execute linux commands, but in special cases, you may use these functions. I used to know that there are two functions that can execute linux commands: exec and shell_exec. In fact, there are a lot of functions. the
Common linux commands do not forget to note the commonly used basic linux commands. these days, when I have been drum up linux, some basic commands have not been used for a long time, but sometimes it will be used, and it will inevitably be
Summary of common functions used to execute linux commands in PHP, and summary of phplinux commands
In general, php is rarely used to execute linux commands, but in special cases, you may use these functions. I used to know that there are two
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.