Question 1: display the current time in the format hh: mm: ss and save it to the time.txt file
[kiosk@foudation7 Desktop]$ date +%H:%M:%S >> time.txt
Question 2: show lines 15-18 of the / etc/passwd file
[kiosk@foudation7 Desktop]$ cat /etc/passwd | head -n 18 | tail -n 3
Posted on Sun, 03 May 2020 04:23:45 -0700 by broomstick
Process view and management tools on linux:
pstree，ps，pidof，pgrep，top，htop，glances，pmap，vmstat，dstat，kill，pkill，job，bg，fg，nohup，nice，renice，killall. . .
When linux is powered on, it will start the first process. This process will start other processes. The first process is implemented differently on CentOS 5, 6 and 7.
Posted on Wed, 19 Feb 2020 18:49:29 -0800 by arkismad
[root@CentOS7 ~]# lsof -h
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
[-F [f]] [-g [s]] [-i [i]] [+|- ...
Posted on Tue, 24 Dec 2019 01:05:28 -0800 by buttercupgreen
1 install zmem tool
yum install smem -y
System overview list
By process, map, and user list
Filter by user, map, or user
Configurable columns from multiple data sources
Configurable output units and percentages
Configurable title and sum
Read activity data from / proc
Read data snapshot from directory image or com ...
Posted on Thu, 19 Dec 2019 06:56:59 -0800 by amorphous
Source software: psmisc
Abbreviation: processes tree
Purpose: display process tree
Syntax:] (pstree [options]
-a, --arguments displays the complete instructions for each program, including path, parameter, or resident service identifier
-A, --ascii draws a tree using ASCII lines
-U, --unicode drawing tre ...
Posted on Sat, 19 Oct 2019 11:13:12 -0700 by alwoodman
This article mainly writes some shell script editing tool awk use.
awk is a powerful editing tool, which reads the input text line by line, searches according to the specified matching mode, and formats and outputs or filters the qualified content.
Awk tends to divide a row into multiple fields before processing, and by default, the f ...
Posted on Tue, 15 Oct 2019 12:45:47 -0700 by bettyatolive
Introduction: Dnsmasq is a lightweight DNS server. It is also an open source project with simple and fast configuration. Dnsmasq provides DNS caching and DHCP services. As a domain name resolution server (DNS), dnsmasq can cache DNS requests to improve the connection speed of visited Web sites. As a DHCP server, dnsmasq c ...
Posted on Sun, 16 Jun 2019 10:57:19 -0700 by stebbi
When using the linux operating system, when we forget the location of a file storage before, but know its file name or vague file name, we can find it through the file search tool. linux provides two commonly used search tools, location and find. In daily use, the latter is more powerful and more real-time than the former. Here we will These tw ...
Posted on Tue, 11 Jun 2019 14:01:52 -0700 by bachx
Function: Display the target list, which is a command with high usage in Linux. The output information of ls command can be highlighted in color to partition different types of files.
- a: Display all files and directories (the file name or directory name must be regarded as a video collection in ls, not listed);
- A: Displ ...
Posted on Mon, 22 Apr 2019 09:39:34 -0700 by steven fullman
VII. Constructing Temporary System
1. General Compilation Guide
a. Verify that LFS environment variables are set correctly
b. Assume that you have set it correctly Host system requirements And symbolic links
c. For each package:
(1) Make sure that you are using lfs users when decompressing packages
(2) Unless otherwise specified, de ...
Posted on Fri, 22 Mar 2019 06:15:53 -0700 by chiprivers