, causing the two lines to be merged into one line. n here is the addition of the next line of text to the existing text in the pattern space. If you do not want to create a newline, you can do this:Sed ' n;s/system\nadministrator/desktop\nuser/;s/system administrator/desktop user/' data.txtAgain as text:[email protected] ~]# cat Data.txtOn Tuesday, the Linux Sys
some set operations quickly.
Cat A B | Sort | Uniq > C # C is a union bcat a B | sort | uniq-d > C # C is a intersect bcat a b b | sort | uniq-u > c
使用LC_ALL=C
The settings for locale in Linux affect a large number of command-line tools, including the Sort tool.
Most installed
Monitor 7 command line tools in Linux
Here are some basic command line tools that allow you to more easily explore and operate Linux.
Image courtesy Meltys-stock
In-depth
One of the best things about
Some netizens asked questions on the Q A website Quora: what time-saving tips should every Linux user know? JoshuaLevy usually works on the Linux platform, and he has accumulated a lot of practical command line skills, he selects a part in the response. For technical users, these
[Reprinted from Http://www.linuxeden.com/html/news/20091119/69183.html]Linux command line is the only way to advanced Linux applications, Linux system administrators, developers are learning objects. Susan Linton recommended to us three web sites to learn about the
If you're looking for a very easy-to-use Linux performance monitoring tool right now, I highly recommend installing and using the Nmon command-line utility.Nmon Monitoring ToolsThe Nmon is a system administrator-oriented tuning and benchmarking tool that can be used to display performance data about the following:
Processor
Memory
Internet
Di
Unix Command Line Tricks–part Ihttp://www.cyberciti.biz/open-source/command-line-hacks/20-unix-command-line-tricks-part-i/Deleting a HUGE fileI had a huge log file 200GB I need to delete on a production Web server. My rm and LS
Linux command line shortcut key linux command line shortcut key: C-k: Press Ctrl first, then press k; M-k: click Esc first, then press k. Www.2cto.com move cursor: C-a: move to the beginning of the
Use the VirtualBox command line management interface on Linux
VirtualBox has a set of command line tools. You can use the command line interface (CLI) of VirtualBox to manage virtual ma
resources to be attached to the local Linux, and then use smbmount or mount to add the resources. refer to the following commands:Smbmount // 192.168.100.111/public/Mount // 192.168.100.111/D/mnt/CDROM-O username = Terry (enter the password on the command line)Mount // 192.168.100.111/D/mnt/CDROM-O username = Terry $1234 (you do not need to enter the password in
Five interesting Linux Command Line skills
Have you made the best use of Linux? For many Linux users, there are many useful features that seem to be a skill. Sometimes you need these skills. This article will help you better use some commands and use their more powerful func
If you are an IT person accustomed to a Windows command prompt, you will feel overwhelmed when you first use the Linux command line. You are familiar with DOS commands that are basically non-existent in Linux. In front of you is a lot of orders to memorize.One alternative is
PHP executes the Linux command line example-file compression ,. PHP executes the Linux command line example-file compression. three txt files need to be packaged into * when working a few days ago *. zipdown to a local machine at
Resolve | command line
uses Uniread to solve the Sql*plus command line history callback function under Linux
Author: fenng
you know that the Sql*plus in the Windows platform command l
The Linux command needs to be operated on the command line interface (CMD for Windows is also a command line interface). It is only when we understand the meaning of the command-
We recommend that you use the linux Command Line download tool. Linux Command Line download tool is not only easy to use, but also has a high download speed and download efficiency, especially suitable for large volumes of downloa
Using a network cable to transfer files between two linux systems, sftp first sets the IP addresses of the two hosts to the same network segment. one is a virtual machine, and the other is a virtual machine network bridging mode in linux, www.2cto.com is in the VM:/etc/init. in d/sshdstartlinux: first, it is true...
Using a network cable to transfer files betwee
and ex escape mode.① Command mode: After the shell prompts to enter the command VI, enter the VI editor, and in the VI command mode. At this point, any characters entered from the keyboard are interpreted as edit commands.② Input Method: By entering the VI Insert Command (i), additional
This article describes some of the command line to improve the efficiency of the skills to help improve interest in learning.
1. Copy and paste under command line
Linux will automatically run a GPM program every time it starts, and then you can copy and paste it with the m
Check PHP information# php-f/var/www/html/infophp.phpChecking PHP information from the command lineBecause the output is too large, we can pass the above output to the command through the pipeline, less so we can output one screen at a time, the command is as follows:# php-f/var/www/html/infophp.php |Check all PHP informationHere, the '-f ' option resolves and ex
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.