Read about practical guide to linux commands, The latest news, videos, and discussion topics about practical guide to linux commands from alibabacloud.com
and practical in Linux. However, when you use the foobar command, if you do not thoroughly check the risks of changing the original command, this may cause real trouble. In fact, this kind of trick is, in the opinion of the translator, a few useless and harmful "hacker" skills left behind by prehistoric times .)
9. dd if =/dev/random of =/dev/sda
The preceding command writes random junk files to the bloc
Guide
Today to share with you 10 years of Linux summed up 11 cool Linux terminal commands, through today's article I will show you a series of Linux commands, tools and techniques, I hope to help everyone.
1
the current Linux server as root through other Linux client tools and observe the changes in the Watch command. Every 1.0s:who Sat 12 12:41:09 2011Stephen Tty1 2011-11-11 17:38 (: 0)Stephen Pts/0 2011-11-11 17:39 (: 0.0)Root PTS/1 2011-11-12 10:01 (192.168.149.1)Root PTS/2 2011-11-12 11:41 (192.168.149.1)Root PTS/3 2011-11-12 12:40 (192.168.149.1)Stephen Pts/4 2011-11-12 12:22 (: 0.0)root PTS/5 2011-11-12
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 and the latest version is 5.
This article mainly introduces how to use Linux c
in the cache directoryYum clean oldheaders Clear Cache directory for old headersYum Clean, yum clear all (= Yum packages; Yum oldheaders) clears the cache directory of packages and the old headersFor example, to install a game program group, first look for:#:yum grouplistIt can be found that the installable game package name is "games and entertainment" so that it can be installed:#:yum Groupinstall "Games and entertainment"All the game packages are installed automatically. Here the name of gam
Compressed package name (unzip to the specified directory, add-c/directory after the ZIP package name)
Gzip Compression command:
Compression: gzip [-r] Compress package name. TarDecompression: gzip-d compression package name. tar.gz
Zip/unzip
Compression: Zip [-r] Package name (. zip) Compressed Package Name 1 Compressed package Name 2 ...Unzip: unzip-d the Directory compressed package name after decompression. zip2.3 Linux
processes, you can use commands such as PS--heip to view system help. However, the drawback is that the system online Help is English, the system administrator's English level is a very small test. However, if you want to be a Linux system administrator, this English language is still needed. Because the newest Linux technology basically comes out in English doc
The usage of SCP command in Inux system
Note: If-bash:scp:command not found appears during use, perform yum install openssh-clients
The SCP is a secure copy abbreviation, and the SCP is a secure remote file Copy command under the Linux system based on SSH login. (Note: In the computer room maintenance, direct connection to the server to execute this command is invalid ... The SCP commands for
I've been using Linux for 10 years, and through this article I'm going to show you a series of commands, tools, and tricks, and I want someone to tell me that from the beginning, not to stumble on me on my way to growth.1. Command line daily shortcut keysThe following shortcuts are very useful and can greatly improve your productivity:CTRL + U-cut the content before the cursorCTRL + K-cut the cursor to the
I've been using Linux for 10 years, and through this article I'm going to show you a series of commands, tools, and tricks, and I want someone to tell me that from the beginning, not to stumble on me on my way to growth.1. Command line daily shortcut keysThe following shortcuts are very useful and can greatly improve your productivity:CTRL + U-cut the content before the cursorCTRL + K-cut the cursor to the
User02System returns:PasswordAt this point, enter the USER02 instruction and it will become user02.5.3 Useradd CommandThe Useradd command is used to increase the user, only the root user can increase the user. If you are not logged in as the root user, enter Su, and then enter the root password.To add a user, enter a command:Useradd User NameThen, follow the prompts to enter a password for the new user.Six Commands for online queries6.1 Man CommandTh
I've been using Linux for 10 years, and I'm going to show you a series of commands, tools, and techniques from the beginning, and I hope someone tells me that from the start, not the way I've been growing.
1. command line daily system shortcuts
The shortcuts below are very useful and can greatly improve your productivity:
CTRL + U-cut content before the cursor
CTRL + K-cut the cursor to the
shortcut under Windows.Can delete the original file and save the connection file, there is no prevention of accidental deletion function.This paragraph of the content is too abstract, but also the node is an array, I have tried to popular again, and not good examples for demonstration. If you are still foggy, I have no way, only first remember, in the future in the practical application of slowly experience, understanding. This is also my study of a
Commands used to create a chat server and remove redundant software packages in Linux
Here, let's look at the next part of the Linux Command Line practical skills. If you miss the article before Linux Tracks, you can find it here.
Five interesting
/locale.gen # # # Output Locale.gen content$ cat-n/etc/locale.gen # # # Output Locale.gen content and display line numbersMoreMuch like cat, you can view the contents of a file, except that when a document is too long, cat can only show the last content that is covered by the screen, and the front content is not visible. This is where you can display content more than once.$ more/etc/locale.gen$ More +100/etc/locale.gen # # # Starting from 100 lines displayLessLess is similar to more, but less s
"mv cats dogs" to rename the file "cats" to "dogs", and enter "mv cats ~ /Desktop will move the file "cats" to the desktop directory without renaming.
9. more
The "more" command allows you to view more content at the same time on a screen.
10. kill
You need to close a program. This is probably the most efficient method. Run the "ps" command to find the process ID you want to close and enter "kill" to close the process.
11. sudo
Linux is so secure tha
the beginning of the first line of the file to the end of the last line.----:%s/$/some string/g Add "some string" at the end of each line of the file.----:%s/string1/string2/g Replace "string1" into "string2" throughout the file.----: 3,7s/string1/string2/replaces only "string1" in the 3rd line of the file to the 7th line as "string2".----Note: where S is substitute,% for all rows, G represents global.----5. Edit 2 files Simultaneously, copy the text from one file and paste it into another file
In addition to basic operations like searching for files in a directory structure, you can also use the find command to perform some practical operations to make your command line easier.
This article will introduce 15 Linux find commands that are useful for beginners and laruence.
First, create the following empty file under your home directory to test the follo
character and deletes the entire line.Ctrl+h: Deletes a character to the beginning of a line and deletes one character forward, equivalent to backspace.Ctrl+d: Deletes one character to the end of a line and deletes one character backwards, equivalent to delete.Ctrl+y:: Paste ctrl+u,ctrl+k,ctrl+w deleted text.Ctrl+p: The previous used History command. (p:previous)CTRL + N: The next use History command. (N:next)Ctrl+r: Quick Search History command. (R:retrieve).Ctrl+t: Swap the character of the c
searches for word at the top of the file.N repeats the last search command in the same directionN repeats the last search command in the opposite direction: S/p1/p2/g all P1 in the current row are replaced with P2: n1,n2s/p1/p2/g all P1 in line N1 to N2 are replaced with P2: G/p1/s//p2/g replaces all P1 in the text with P2Last line mode command: N1,N2 Co n3 copies the contents of the N1 line to the N2 row below the N3 line: n1,n2 m N3 moves the contents of the N1 line to the N2 row below the N3
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.