How to sort text lines in reverse order in Linux

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 home partition size

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

Definition color prompt in linux

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

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 #

Debian package management system

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

Gentoo, Debian, And FreeBSD software package management competition

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

Build Apache + MySQL + PHP + SSL in CentOS 6

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 a whitelist Based on the end number of the Website user

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

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 shorthand

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

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

Linux memory Virtual Disk

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

Search for files in ubuntu

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.

Openbox beautification operations

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

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

Linux study Note 5

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, let Tomcat generate logs by date

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

Shell basic exercises & lt; 1 & gt;

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

Apache Load Balancing

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

8 practical Linux Shell commands

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 +

Total Pages: 5467 1 .... 5448 5449 5450 5451 5452 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.