1. Get the K line (take k=10 as an example)Note that if the file contains less than 10 rows, it should not be output.# Read from thefile file. txt and output the tenth line to stdout.# solution one, using awkawk 'NR = = Ten' file. txt# solution Two,
If all things are objects in the Java world, then in the Linux world, everything can be said to be files. Linux files are generally divided into two types, general files and directory files. File permissions are critical to data security, and it is
IntroducedSometimes we need to open multiple programs at the command line at the same time, but each program will occupy the command line, when you can use Tmux, to the command line interface columns.InstallationYou only need one line of commandapt
1, the Linux system needs to back up the data/root/Directory:/home/directory:/var/spool/mail/directory:/etc/Directory: Other directories:2, the installation of services dataData that Apache needs to back upconfiguration files, Web page home
# Specify the time of the format date + '%y-%m-%d%h:%m:%S '2017-11-29 10:42:55# Timestamp -to seconds date + '%s '1511925242# Timestamp converted to time date + '%y-%m-%d%h:%m:%s '-d @15119252422017-11-29 11:14:02+ '%y%m%d%h:% m:%s '-d @ ' date +%S
When I wrote makefile on my CentOs7.1 yesterday, I found that a C program made an error when compiling and linking a generated LIB dynamic library. The link command is probably like this:[[email protected] tcpmsg]# gcc -o hello main.c
If a Linux server ping does not pass the domain name, the following prompt:[[email protected] ~]# Ping www.baidu.comPing:unknown Host Www.baidu.comFirst determine that the router is connected and the router has access to the extranet, which can be
Linux daily operation and maintenance management skills--monitoring system StatusFirst, check the disk status1.iostat–x Disk usage%util indicates io waits,2.iotop disk usage (dynamic display)Second,free to view memory usage1. The free command
Installation Environment:
Centos7_x86_64
JDK8
Hadoop-2.9.0
Installation steps:1. Install the configuration jdk.2. Download Hadoop-2.9.0.3. Extracting Hadooptar zvxf hadoop-2.9. 0. tar. gz4. Add the bin directory and the Sbin
environment variable settings under Linux1, under the Windows system, many software installations need to configure environment variables, such as installing the JDK, if you do not configure environment variables, run the JAVAC command in a
1. InstallationYum Install Subversion2. MigrationThe original server moved out (can also be backed up after generating the command)Svnadmin Dump/opt/svn/repos > DumpFileThe destination server creates a warehouse for the heartSvnadmin
DF is commonly used to view disk usage.Du is commonly used to view the size of a folder.Linux commands:DF [-ahikhtm] [directory or folder]Parameters:-H: Display the usage of 1111000KB-XXXMB in a way that is easier to recognize, by default in KB-I:
I. Downloads of related Resources①debian series Ubuntu is more suitable for desktop version of the operating systemHttp://www.ubuntu.org.cn/desktop②redhat series Red Hat operating systemCentOS( Same as community maintenance version of Redhat source
Linuxdaily operation and maintenance management skillsMonitor system Status1.w/uptime View the status of the system, execute this command to know who is currently logged into the system, and what programs they are executing , and what the current
Linux releases the memory command:SyncEcho 1 >/proc/sys/vm/drop_cachesThe value of drop_caches can be a number between 0-3 and represents a different meaning:0: Not released (system default)1: Free Page cache2: Release dentries and Inodes3: Release
36. Linux driver debugging-locate the error code line based on oops, 36. linuxoops
1. When a drive error occurs, for example, if the accessed memory address is invalid, a large string of oops will be printed.
1.1 Use LED driver as an Example
Block
The difference between the network card binding team and bond in RHEL7 is that rhel7 is bound to teambond.
Comparison of team and bond features officially provided by red hat
A Comparison of Features in Bonding and Team
Feature
Linux system LVM partition capacity reduction and linuxlvm partition Capacity Expansion
Linux LVM partition capacity reduction
Goal: scale down the VolGroup-lv_home to 20 GB and add the remaining space to the VolGroup-lv_root
1. First check the disk
How to install nginx and centos7nginx in Centos7
1. Add the nginx yum Source(Installation instructions on the official website)
Vi/etc/yum. repos. d/nginx. repo
Add the following content to the file:
[Nginx]Name = nginx repoBaseurl =
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service