SED usage: sed ' Command ' filename (s) displays only results without modifying the file.
1, sed ' 2,5d ' file displays files, excluding 2-5 rows, but the number of rows exceeds the actual number of files in the file does not error.
The sed '/10[1-4]/d ' file displays files, excluding rows containing 101-104.
Sed ' 2, $d ' file displays files, showing only the first row. The sed ' 2,$!d ' file displays only the other rows except the first line.
Se
ChownIs a command used to set file owners and file associations in UNIX systems. Super User Permissions are required to execute this command. Only the file owner of the file group and the super user can change the file association group. If you do not have permissions, you may need to use the chgrp command to set the a
Unix more command, unixmore
[Syntax]: more [-cdflrsuw] [-number of rows] [+ number of rows] [+/mode] [file...]
[Description]: displays the file on the terminal. -- more -- is displayed at the lower left of each screen. If the file is read rather than the pipe, the percentage is displayed at the end, indicates the displayed part. Press the Enter key to roll up a line and press the Space key to roll up a
There are many commands in the UNIX operating system that can be used to back up files. However, the root file system in the UNIX operating system is a relatively special file. In general, you must uninstall other file systems If you are backing up this type of file. Because the root file system is the ancestor of other filesystems, it backs up files in other file systems at the same time if not uninstalled
Brief introduction
The crontab command is common in UNIX and unix-based operating systems, and is used to set periodically executed instructions. This command reads the instruction from the standard input device and stores it in a "crontab" file for later reading and execution.
Typically, crontab stored instructions
Unix cp command, unixcp
[Syntax]: cp [-p] [-r] File 1 [file 2...] Target
[Description]: Set file 1 (file 2 ...) if the object is a file name, only one file can be copied. if the object is a directory, multiple files can be copied, if the target file does not exist, create this file. If yes, overwrite the previous content. If the target file is a directory, copy the file to this directory.-I will prompt
I learned a new command:PartprobeThis command can make the new disk partition take effect without restarting the operating system.
Default location:/sbin/partprobe. Related commands:Parted.
In practice, warnings are sometimes reported and partition information is not updated successfully.
Partprobe-S
Warning: warning: the kernel failed to re-read the partition table on/dev/SDA (device or resource busy ). as a result, it may not reflect all of
under the use of Linux/unix, often use the text interface to set up the system or operating system, the author himself in the process of work is also constantly in touch with this command, so forThis special brewing, preparation, began the writing of this article. This paper mainly records some of their usual linux/unix under the operation of
About ViVi is the most popular full-screen document editor in the Unix world, and almost any UNIX machine can saywill provide this software. Linux Of course also has, its VI is actually Elvis (copyright question), but they allAlmost. Familiar with the DOS of the document processing, may feel that VI is not good, Unix has developedMany newer, better-used clerical
28 Unix/linux Command-line artifactBelow are the 28 Kristóf Kovács collected under the 28 Command line tools (original link), some are familiar with, some are very useful, some are not known. These tools are very good, I hope everyone knows. This article is also discussed in Hacker News, you can go to see. I have added the website link and some instructions in th
Tags: permissions test content Universal inittab ATI script Run SystemTurn http://blog.itpub.net/23135684/viewspace-668924/Unix general use Method 3, for deploying OSWMethod One:Edit/etc/rc.d/rc.localJoin the command you want to execute.Such as:[email protected] rc.d]# cat rc.local#!/bin/sh## this script. 'll is executed *after* all and the other init scripts.# can put your own initialization stuff in here
This article applies to the following topics:
Unix Linux Convert string to command
UNIX Linux Convert strings to command execution
How to convert a string into a command in a Linux sh script
Answer:Use the eval command
accessed in the last 48 hours of the system
Find/-empty # Check for empty files or binders in the system
Find/-group Cat # Check the files in the system that belong to Groupcat
Find/-mmin-5 # files modified in the last 5 minutes of the system
Find/-mtime-1 #查在系统中最后24小时里修改过的文件
Find/-nouser #查在系统中属于作废用户的文件
Find/-user Fred #查在系统中属于FRED这个用户的文件
Find/-name AAA #查在系统中 file named AAA
The following list is a partial condition for searching the characteristics of a file that can be specified by t
name in sleep is displayedFlags task flag, reference sched.hSort by specified columnTop can be set to sort by an item, by default it is sorted by CPU usage,M, (note upper case), sorted by memory usageP, sort based on percent CPU usageT, sorted by Time/accumulated time.How to end a processEnter the letter k(lowercase), and then enter the PID you want to killOf course you can also run the command directly, kill the PIDTop Other usesOther uses of top, c
Excerpt from: http://blog.csdn.net/zjg555543/article/details/8278266Linux and UNIX, each version of the operating system has its own software installation, the most convenient is to install software online, this article is to collect the various versions of the online installation of the command.1. Solaris 10:Pkgutil-i2. FreeBSD:Enter/usr/ports/devel/*/execute make,make install will automatically download t
BG and FGLinux/unix the biggest advantage of the Microsoft platform is the real multi-user, multi-tasking. Therefore, in the task management also has the characteristic management thought.We know that on Windows, we either have a program running in the background as a service or stop the service. Instead of allowing the program to switch between foreground and background. Linux provides FG and BG commands that allow you to easily schedule tasks that a
Execute Docker PS command, appear
"Cannot connect to the Docker daemon at Unix:///var/run/docker.sock. Is the Docker daemon running?
Error
It is now determined that the Docker itself is installed properly.
The problem is because the Docker service did not start, so the Docker process could not be found under the corresponding/var/run/path.
Execute service Docker start
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.