In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Ls
List directory contents
$ls
64320131230-REPORTID.log 64320140106-REPORTID.log ORP643ICL1021D2014-01-09-10-46-32.txt
64320131230.log 64320140106.log ORP643ICL1030D2014-01-09-10-46-36.txt
64320131231-REPORTID.log 64320140107-REPORTID.log ORPToOnDemand1.sh
64320131231.log 64320140107.log backup
64320140101-REPORTID.log 64320140108-REPORTID.log logs
64320140101.log 64320140108.log ndm_binary_send.ksh
64320140102-REPORTID.log 643_app.cfg rep_bundle.cfg
64320140102.log ARUCDBFT1U.20140108.192315.ORP.078.UNX scripts
64320140103-REPORTID.log ARUODRECORPU.20140108.192315.ORP.078.REC
64320140103.log FileSeqNumberFile643
Ls-l
Use a long listing format
$ls-l
Total 81820
-rw-r--r-- 1 udwhapp1 udwhapp 180 Dec 30 18:23 64320131230-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 30 18:23 64320131230.log
-rw-r--r-- 1 udwhapp1 udwhapp 1230 Dec 31 18:32 64320131231-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 31 18:32 64320131231.log
-rw-r--r-- 1 udwhapp1 udwhapp 945 Jan 01 12:42 64320140101-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 90 Jan 01 12:42 64320140101.log
-rw-r--r-- 1 udwhapp1 udwhapp 690 Jan 02 15:49 64320140102-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 180 Jan 02 15:49 64320140102.log
-rw-r--r-- 1 udwhapp1 udwhapp 2722 Jan 03 22:11 64320140103-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 03 22:11 64320140103.log
-rw-r--r-- 1 udwhapp1 udwhapp 22335 Jan 06 18:33 64320140106-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 270 Jan 06 18:33 64320140106.log
-rw-r--r-- 1 udwhapp1 udwhapp 11370 Jan 07 21:34 64320140107-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 540 Jan 07 21:34 64320140107.log
-rw-r--r-- 1 udwhapp1 udwhapp 13260 Jan 08 19:23 64320140108-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 08 19:23 64320140108.log
-rwxr-xr-x 1 udwhapp1 udwhapp 69 Nov 29 10:47 643_app.cfg
-rw-r--r-- 1 udwhapp1 udwhapp 1943579 Jan 08 19:23 ARUCDBFT1U.20140108.192315.ORP.078.UNX
-rw-r--r-- 1 udwhapp1 udwhapp 225 Jan 08 19:23 ARUODRECORPU.20140108.192315.ORP.078.REC
-rw-r--r-- 1 udwhapp1 udwhapp 13 Jan 08 19:23 FileSeqNumberFile643
-rw-r--r-- 1 udwhapp1 udwhapp 711 Jan 09 10:50 ORP643ICL1021D2014-01-09-10-46-32.txt
-rw-r--r-- 1 udwhapp1 udwhapp 39731385 Jan 09 11:02 ORP643ICL1030D2014-01-09-10-46-36.txt
-rwxr-xr-x 1 udwhapp1 udwhapp 51683 Nov 29 10:46 ORPToOnDemand1.sh
Drwxrwxr-x 2 udwhapp1 udwhapp 65536 Jan 08 19:23 backup
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 logs
-rwxr-xr-x 1 udwhapp1 udwhapp 330 Nov 29 10:45 ndm_binary_send.ksh
-rwxr-xr-x 1 udwhapp1 udwhapp 3 Nov 29 10:45 rep_bundle.cfg
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 scripts
Ls-r
Reverse order while sorting
$ls-lr
Total 81820
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 scripts
-rwxr-xr-x 1 udwhapp1 udwhapp 3 Nov 29 10:45 rep_bundle.cfg
-rwxr-xr-x 1 udwhapp1 udwhapp 330 Nov 29 10:45 ndm_binary_send.ksh
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 logs
Drwxrwxr-x 2 udwhapp1 udwhapp 65536 Jan 08 19:23 backup
-rwxr-xr-x 1 udwhapp1 udwhapp 51683 Nov 29 10:46 ORPToOnDemand1.sh
-rw-r--r-- 1 udwhapp1 udwhapp 39731385 Jan 09 11:02 ORP643ICL1030D2014-01-09-10-46-36.txt
-rw-r--r-- 1 udwhapp1 udwhapp 711 Jan 09 10:50 ORP643ICL1021D2014-01-09-10-46-32.txt
-rw-r--r-- 1 udwhapp1 udwhapp 13 Jan 08 19:23 FileSeqNumberFile643
-rw-r--r-- 1 udwhapp1 udwhapp 225 Jan 08 19:23 ARUODRECORPU.20140108.192315.ORP.078.REC
-rw-r--r-- 1 udwhapp1 udwhapp 1943579 Jan 08 19:23 ARUCDBFT1U.20140108.192315.ORP.078.UNX
-rwxr-xr-x 1 udwhapp1 udwhapp 69 Nov 29 10:47 643_app.cfg
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 08 19:23 64320140108.log
-rw-r--r-- 1 udwhapp1 udwhapp 13260 Jan 08 19:23 64320140108-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 540 Jan 07 21:34 64320140107.log
-rw-r--r-- 1 udwhapp1 udwhapp 11370 Jan 07 21:34 64320140107-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 270 Jan 06 18:33 64320140106.log
-rw-r--r-- 1 udwhapp1 udwhapp 22335 Jan 06 18:33 64320140106-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 03 22:11 64320140103.log
-rw-r--r-- 1 udwhapp1 udwhapp 2722 Jan 03 22:11 64320140103-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 180 Jan 02 15:49 64320140102.log
-rw-r--r-- 1 udwhapp1 udwhapp 690 Jan 02 15:49 64320140102-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 90 Jan 01 12:42 64320140101.log
-rw-r--r-- 1 udwhapp1 udwhapp 945 Jan 01 12:42 64320140101-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 31 18:32 64320131231.log
-rw-r--r-- 1 udwhapp1 udwhapp 1230 Dec 31 18:32 64320131231-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 30 18:23 64320131230.log
-rw-r--r-- 1 udwhapp1 udwhapp 180 Dec 30 18:23 64320131230-REPORTID.log
Ls-t
Sort by modification time
$ls-lrt
Total 81820
-rwxr-xr-x 1 udwhapp1 udwhapp 330 Nov 29 10:45 ndm_binary_send.ksh
-rwxr-xr-x 1 udwhapp1 udwhapp 3 Nov 29 10:45 rep_bundle.cfg
-rwxr-xr-x 1 udwhapp1 udwhapp 51683 Nov 29 10:46 ORPToOnDemand1.sh
-rwxr-xr-x 1 udwhapp1 udwhapp 69 Nov 29 10:47 643_app.cfg
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 scripts
Drwxrwxr-x 2 udwhapp1 udwhapp 2048 Dec 10 11:41 logs
-rw-r--r-- 1 udwhapp1 udwhapp 180 Dec 30 18:23 64320131230-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 30 18:23 64320131230.log
-rw-r--r-- 1 udwhapp1 udwhapp 360 Dec 31 18:32 64320131231.log
-rw-r--r-- 1 udwhapp1 udwhapp 1230 Dec 31 18:32 64320131231-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 90 Jan 01 12:42 64320140101.log
-rw-r--r-- 1 udwhapp1 udwhapp 945 Jan 01 12:42 64320140101-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 180 Jan 02 15:49 64320140102.log
-rw-r--r-- 1 udwhapp1 udwhapp 690 Jan 02 15:49 64320140102-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 2722 Jan 03 22:11 64320140103-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 03 22:11 64320140103.log
-rw-r--r-- 1 udwhapp1 udwhapp 270 Jan 06 18:33 64320140106.log
-rw-r--r-- 1 udwhapp1 udwhapp 22335 Jan 06 18:33 64320140106-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 11370 Jan 07 21:34 64320140107-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 540 Jan 07 21:34 64320140107.log
Drwxrwxr-x 2 udwhapp1 udwhapp 65536 Jan 08 19:23 backup
-rw-r--r-- 1 udwhapp1 udwhapp 13 Jan 08 19:23 FileSeqNumberFile643
-rw-r--r-- 1 udwhapp1 udwhapp 1943579 Jan 08 19:23 ARUCDBFT1U.20140108.192315.ORP.078.UNX
-rw-r--r-- 1 udwhapp1 udwhapp 13260 Jan 08 19:23 64320140108-REPORTID.log
-rw-r--r-- 1 udwhapp1 udwhapp 225 Jan 08 19:23 ARUODRECORPU.20140108.192315.ORP.078.REC
-rw-r--r-- 1 udwhapp1 udwhapp 720 Jan 08 19:23 64320140108.log
-rw-r--r-- 1 udwhapp1 udwhapp 711 Jan 09 10:50 ORP643ICL1021D2014-01-09-10-46-32.txt
-rw-r--r-- 1 udwhapp1 udwhapp 39731385 Jan 09 11:02 ORP643ICL1030D2014-01-09-10-46-36.txt
Uname-a
Get the unix version
$uname-a
AIX rdcgcgboxaa01u 1 6 00F621BB4C00
Id
Get current user id and group id
$id
Uid=14042 (udwhapp1) gid=14042 (udwhapp)
Grep
Searches for a pattern in a file.
$grep 'REPORT DATE: 12 Universe 31 txt 2013' *
ORP643ICL1049D2014-01-09-16-23-06.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643ICL1051D2014-01-09-16-23-07.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643ICL1056D2014-01-09-15-52-12.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643ICL1070D2014-01-09-16-23-02.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643LCL1071D2014-01-09-16-23-05.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643LNE1174D2014-01-09-14-56-21.txt: REPORT DATE: 12Accord31 Universe 2013
ORP643LNE1182W2014-01-09-14-58-44.txt: REPORT DATE: 12Accord31 Universe 2013
Grep... | wc-l
Returns the search result count
Wc-l
Counts the number of lines
$grep 'REPORT DATE: 12 grep 31 * txt | wc-l
ninety-six
Head
Displays the first few lines of a file.
Line
Reads one line from the standard input. Can be used to avoid account timeout logoff.
Ls-lrt | tail-10
Displays the last 10 files of current directory.
Tail
Displays the last few lines of a file.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.