In Linux, how does one arrange text rows in reverse order? 1. command method: www.2cto.com nl filename | sort-nr | cut-f2 this method is very unix-like. Using a combination of multiple commands to complete a function is a typical unix feature.
CentOS6.2 adjust the size of the home partition 1. first check disk usage df-h www.2cto.com Filesystem Size Used Avail Use % Mounted on/dev/mapper/vg-lv_root 50G 8.9G 378G 18%/tmpfs 1.9G 112 K 1.9G 1%/ dev/shm/dev/sda1 485 M 64 M 396 M
In linux, the definition color prompt [plain] www.2cto.com #! /Bin/bash # This shoshould go in your ~ /. Bashrc file # Define ANSI color sequences NORMAL = "\ [\ 033 [0m \]" WHITE = "\ [\ 033 [0; 37; 40m \] "MAGENTA =" \ [\ 033 [0; 35; 40m \]
View System Resources in linux: www.2cto.com # uname-a # view kernel/OS/CPU information # head-n 1/etc/issue # view OS version # cat/proc/ cpuinfo # view CPU information # hostname # View computer name # lspci-TV # list all PCI devices # lsusb-TV #
The Debian package management system contains only .tar.gz package files. You must compile each software that he wants to run on GNU/Linux. Users generally think that it is necessary for the system to provide a way to manage these software packages
The package management mechanisms of Gentoo, Debian, And FreeBSD are very similar. Gentoo and Debian are my favorite Linux distributions, one is naturally an excellent development platform, and the other is undoubtedly the preferred product for both
Some articles on the Internet are old. After the version is high, the configuration is effort-saving (without considering any load, apart from the differences in the epel rpmfushion source commands mentioned above, other processes are also
Nginx sets the White List www.2cto.com by the end Number of the Website user. In fact, this requirement is very common. It is a new function that needs to be developed. First, you must test run on the website.There are many implementation methods to
Linux registration system service registers a system service and starts it automatically upon startup. www.2cto.com 1 script # vim test. sh [python] #! /Bin/bash # description: hello. sh # chkconfig: 2345 20 81 EXEC_PATH =/usr/local/EXEC = hello. sh
Linux git command can be abbreviated to open. edit the git/config file as follows: conf code www.2cto.com [merge] summary = true tool = vimdiff [diff] renames = copy [color] diff = auto status = true branch = auto interactive = auto ui = auto log =
Usage of sfdisk and parted in linux SFDISK: sfdisk [-? Tvx] [-d ] [-g ] [-l ] [-s ] [-V ] sfdisk is a hard disk partition tool program, display the partition settings and check whether the partition is normal. Parameter: www.2cto.com -? Or -- help
In most Linux releases of Linux memory Virtual Disks, memory disks use the/dev/shm path by default. The default size of the file system type tmpfs is the actual memory size, this is in line with the actual operation habits. The operation path is the
How do I search for files in ubuntu? 1. whereis file name www.2cto.com features: fast, but fuzzy search, for example, find # whereis mysql, it will put mysql, mysql. ini, mysql. * All directories are located. I usually use this command for searching.
The beautification of openbox includes wallpapers, window themes, and Icon themes. Www.2cto.com 1/the commonly used wallpaper software is feh and nitrogen. I use nitrogen. First, install nitrogen and then use the command # nitrogen/yaorwallpaperpath.
Linux scheduling algorithm rhca unit 6 Compensating for Physical Disk Characteristics www.2cto.com objective:. understand the physical factors that affect disk io B. application Queue Technology adjusted IO scheduling 6.1 Physical factors affect
If you are familiar with windows, you will think that it is very easy to execute every operation, but this is not the case after installing linux. You may think that you have logged on with the user name and password you set in advance after
In Linux, logs generated by Tomcat are not generated by date. As a result, logs become larger and larger, which is inconvenient to view. It is troublesome to manually back up logs. You can modify catalina. sh file to achieve the effect.The method is
1. the user is required to enter the name, age, and gender.
#! /Bin/bash
Read-p "Please input your name:" name
Read-p "Please input your age:" age
Read-p "Please input your sex:" sex
Echo "Your name is $ name, age is $ age, sex is $ sex ."
2. Write
Author: aolinksThe disadvantage of R-proxy is that when one of the web servers stops running, apache still forwards the request, resulting in a 502 Gateway error.
1) configure a polling balancing policy
Go to the conf directory of Apache, open
1. Create a pdf version for the man ManualMan-t manpage | ps2pdf-filename.pdfFor example, the man manual pdf file for making ls commands
Man-t ls | ps2pdf-ls.pdf2. Bind the shortcut key to the command
Bind-x' "\ C-l": ls-l'In this way, press CTRL +
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