Linux Command summary a. * (1)

Source: Internet
Author: User
Tags perl script

Linux Command summary a. * (1)

 

1. a2p converts an awk script to a perl script command

The converted results are not necessarily reliable and require manual intervention.

 

[root@jjy ~/q/data/hongkongAndMacaoPoint/poi]# cat awkTest.sh#!/bin/bashecho $1 awk '{for(i=0; i < NF; i++){ print $i}}' $1[root@jjy ~/q/data/hongkongAndMacaoPoint/poi]# a2p -o  awkTest.sh perlTest.plUnrecognized character ' in file awkTest.sh line 3--ignoring.Unrecognized character ' in file awkTest.sh line 3--ignoring.#!/usr/bin/perleval 'exec /usr/bin/perl -S $0 ${1+"$@"}'    if $running_under_some_shell;# this emulates #! processing on NIH machines.# (remove #! line above if indigestible)eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_0-9]+=)(.*)/ && shift;# process any FOO=bar switches#!/bin/bash$, = ' ';# set output field separator$\ = "\n";# set output record separatorwhile (<>) {    chomp;# strip record separator    @Fld = split(' ', $_, -1);    print $_ if $echo . $Fld[(1)-1];    if ($awk) {for ($i = 0; $i < ($#Fld+1); $i++) {    print $Fld[$i];}    }    print $_ if $Fld[(1)-1];}

2. a2ping command for converting image and document formats

 

[Root @ jjy ~ /Q/data/tmp_data] # a2ping -- bboxfrom = compute-gs/notSolidHd/learing_document/shell12.pdf xx. eps

Supported input formats: PS (PostScript), EPS, PDF, PNG, JPEG, TIFF, PNM, BMP, GIF, LBM, XPM, PCX, and TGA.

Supported output formats: EPS, PCL5, PDF, PDF1, PBM, PGM, PPM, PS, markedEPS, markedPS, PNG, XWD, BMP, TIFF, JPEG, GIF, XPM.

Dependent on the sam2p and gs commands

3. a2ps sets how to display text or graphics on the print page.

4. a2x converts the asciidoc file to another format

A DocBook toolchain manager that translates an AsciiDoc text file SOURCE_FILE to PDF, EPUB, DVI, PS, LaTeX, XHTML (single page or chunked), man page, HTML Help or plain text formats using asciidoc (1) and other applications (see REQUISITES section ). SOURCE_FILE can also be a DocBook file with. xml extension

[Root @ jjy ~ /Q/data/tmp_data] # cat minimal-book.txt
= The Book Title

= The first chapter
Nec vitae mus fringilla eu vel pede sed pellentesque. Nascetur fugiat
Nobis. Eu felis id mauris sollicitudin ut. Sem volutpat feugiat.
Ornare convallis urna vitae.

Nec mauris sed aliquam nam mauris dolor lorem imperdiet.

= The second chapter
Ut suspendisse nulla. Auctor felis facilisis. Rutrum vivamus nec
Lectus porttitor dui dapibus eu ridiculus tempor sodales et. Sit
Cras. Id tellus cubilia erat.

Quisque nullam et. Blandit dui tempor. Posuere in elit diam egestas
Sem vivamus vel ac.

Convert to pdf Format
[Root @ jjy ~ /Q/data/tmp_data] # a2x-fpdf minimal-book.txt

5. a2x. py is the same as a2x, except for the python version.

First, we will introduce aalib.

 

Aalib is a library file that converts all images into ascii codes.

AAlibIs a software library which allows applications to automatically convert still and moving images into ASCII art.

6. aafire: displays the flame in terminal.

7. aainfo: aalib driver for display, keyboard, and mouse

Aainfo displays information about what drivers aalib will use for the display, keyboard, and mouse, and what parameters, such as screen size those drivers will use

8. aalib-config, which provides configuration information for aalib.

Usage: aalib-config [-- prefix [= DIR] [-- exec-prefix [= DIR] [-- version] [-- libs] [-- cflags]

9. aasavefont saves a Chinese font to a file

10. aatest Display Test aalib capability

11. aaxine outputs mp3 and mepg files in ascii format

--------------------------------------------------------

Finally, a useful command is provided.

12. AB, an hhtp stress test command of apache

-C concurrency,-n requests

 

[root@jjy ~/q/data/tmp_data]# ab -c 3 -n10 http://www.baidu.com/This is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking www.baidu.com (be patient).....doneServer Software:        BWS/1.1Server Hostname:        www.baidu.comServer Port:            80Document Path:          /Document Length:        84859 bytesConcurrency Level:      3Time taken for tests:   0.390 secondsComplete requests:      10Failed requests:        9   (Connect: 0, Receive: 0, Length: 9, Exceptions: 0)Write errors:           0Total transferred:      859612 bytesHTML transferred:       850443 bytesRequests per second:    25.67 [#/sec] (mean)Time per request:       116.886 [ms] (mean)Time per request:       38.962 [ms] (mean, across all concurrent requests)Transfer rate:          2154.57 [Kbytes/sec] receivedConnection Times (ms)              min  mean[+/-sd] median   maxConnect:        2    2   0.0      2       2Processing:    13   95  57.2    126     140Waiting:        4   61  39.8     84      92Total:         15   98  57.2    128     142Percentage of the requests served within a certain time (ms)  50%    128  66%    131  75%    134  80%    141  90%    142  95%    142  98%    142  99%    142 100%    142 (longest request)

 

13. abxtest does not understand how to use it.

14. ac printing statistics on users' online time

Y: Print year

D: Print day

 

[root@jjy ~/q/data/tmp_data]# ac -ydOct 24 2014total        0.73Oct 25 2014total       11.57Oct 26 2014total       11.41Oct 27 2014total       13.33Oct 28 2014total       27.91Oct 29 2014total       12.85Oct 30 2014total       22.85Oct 31 2014total       10.96Nov  1 2014total       19.64Nov  2 2014total       18.10Nov  3 2014total       13.57Nov  4 2014total       13.65Nov  5 2014total       24.24Nov  6 2014total       11.29Nov  7 2014total       13.16Nov  8 2014total       12.32Nov  9 2014total        4.14Nov 10 2014total       14.61Nov 12 2014total       46.82Nov 13 2014total       11.81Nov 14 2014total       12.48Nov 15 2014total        8.03Nov 16 2014total       12.53Nov 17 2014total       11.35Nov 18 2014total       11.70Nov 19 2014total       13.53Nov 21 2014total       47.57Nov 22 2014total        4.41Nov 23 2014total        6.81Nov 24 2014total       12.93Nov 26 2014total       44.73Nov 27 2014total       13.36Nov 28 2014total        5.93Nov 29 2014total        4.91Nov 30 2014total        2.50Dec  1 2014total       14.51Todaytotal       24.37

 

15. accept/reject the job to be sent to the destination. The first version acts on the printer.

16. accountwizard account management tool

17. accton enable or disable process Statistics

 

# Touch/var/log/pacct

Then run:

# Accton/var/log/pacct

Once accton is activated, you can use the lastcomm command to monitor the commands executed in the system at any time. To disable statistics, you can use the accton command without any parameters:

# Accton

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.