Sponsored Content
Top Forums Shell Programming and Scripting Fields in the Output of ls -ltr for a directory Post 303023183 by infernalhell on Wednesday 12th of September 2018 05:52:55 PM
Old 09-12-2018
Thank You, it is on network.

By Size in Blocks - would this give an idea of how much size it occupies in GB ?

But i see the parent directory of this dir has a lower block size.. So i am a little confused.


Code:
cd /prod/
@:/prod #ls -ld logs
drwxrwsr-x   28 xyz  abc   134217728 Sep 12 17:49 logs
@:/prod #cd logs
@:/prod/logs #ls -ld job
drwxrwsr-x 4294967295 xyz abc  2147614720 Sep 12 17:49 job

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting fields from an output 8-)

I am getting a variable as x=2006/01/18 now I have to extract each field from it. Like x1=2006, x2=01 and x3=18. Any idea how? Thanks a lot for help. Thanks CSaha (6 Replies)
Discussion started by: csaha
6 Replies

2. Shell Programming and Scripting

To get an output by combining fields from two different files

Hi guys, I couldn't find solution to this problem. If anyone knows please help me out. your guidance is highly appretiated. I have two files - FILE1 has the following 7 columns ( - has been added to make columns visible enough else columns are separated by single space) 155.34 - leg - 1... (8 Replies)
Discussion started by: smriti_shridhar
8 Replies

3. Shell Programming and Scripting

Cut 2 fields and write to a output file

Hi, I am writing a code where the file is a pipe delimited and I would need to extract the 2nd part of field2 if it is "ATTN", "C/O" or "%" and check to see if field9 is populated or not. If field9 is already populated then leave it as is but if field9 is not populated then take the 2nd part of... (3 Replies)
Discussion started by: msalam65
3 Replies

4. Shell Programming and Scripting

AWK Compare files, different fields, output

Hi All, Looking for a quick AWK script to output some differences between two files. FILE1 device1 1.1.1.1 PINGS device1 2.2.2.2 PINGS FILE2 2862 SITE1 device1-prod 1.1.1.1 icmp - 0 ... (4 Replies)
Discussion started by: stacky69
4 Replies

5. Shell Programming and Scripting

awk to compare diff output by fields

Diff output as follows: < AAA BBB CCC DDD EEE 123 > PPP QQQ RRR SSS TTT 111 > VVV WWW XXX YYY ZZZ 333 > AAA BBB CCC DDD EEE 124 How can i use awk to compare the last field to determine if the counter has increased, and need to ensure that the first 4 fields must have the same... (15 Replies)
Discussion started by: ux4me
15 Replies

6. Shell Programming and Scripting

compare 2 CSV fields from same diff output

Attached is a file called diff.txt It is the output from this command: diff -y --suppress-common-lines --width=5000 1.txt 2.txt > diff.txt I have also attached 1.txt and 2.txt for your convenience. Both 1.txt and 2.txt contain one very long CSV string. File 1.txt is a CSV dump of... (0 Replies)
Discussion started by: gvolpini
0 Replies

7. Shell Programming and Scripting

Get output of fields starting from 2nd line

Hi All, I am using the following command in Linux: sar -r 30 3 Linux 2.6.18-194.3.1.7.3.el5xen 02/07/2013 02:55:47 PM kbmemfree kbmemused %memused kbbuffers kbcached kbswpfree kbswpused %swpused kbswpcad 02:56:17 PM 128646024 22348920 14.80 230232 15575860 75497464 ... (4 Replies)
Discussion started by: a1_win
4 Replies

8. Red Hat

What fields we need to consider ntpq -p output?

In our environment we used to lot of events for ntp issues. I am unable to find the what needs to consider here. :( ntpq -p fields. remote refid st t when poll reach delay offset jitter ---------- Post updated at 05:13 AM ---------- Previous update was at 04:47 AM... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

9. Shell Programming and Scripting

I have two commands “ls -h” and “ls -ltr”. How do i make sure “ls -ltr” is run after “ls -h” is suc

help me (2 Replies)
Discussion started by: sonu pandey
2 Replies

10. Shell Programming and Scripting

Match output fields agains two patterns

I need to print field and the next one if field matches 'patternA' and also print 'patternB' fields. echo "some output" | awk '{for(i=1;i<=NF;i++){if($i ~ /patternA/){print $i, $(i+1)}elif($i ~ /patternB/){print $i}}}' This code returnes me 'syntax error'. Pls advise how to do properly. (2 Replies)
Discussion started by: urello
2 Replies
ris(8)							      System Manager's Manual							    ris(8)

NAME
ris - Remote installation services (RIS) utility SYNOPSIS
/usr/sbin/ris /usr/sbin/ris -a client -h hwaddr [-i profset] -p path,prod[,prod]... [-t nettype] /usr/sbin/ris -l /usr/sbin/ris -m client [-h hwaddr] [-i profset] [-p path,prod[,prod]...] [-t nettype] /usr/sbin/ris -r client /usr/sbin/ris -s OPTIONS
Invoke the ris utility without arguments to display the RIS Utility Main Menu and start an interactive session. Refer to the DESCRIPTION section for more information. Use the -h option to specify the RIS client's hardware network address in the form xx-xx-xx-xx-xx-xx, where x is a hexadecimal character. The -h option is mandatory with the -a operand and optional with the -m operand. Use the -i option to spec- ify an installation profile set to use when you install software from a RIS area onto a RIS client. The -i option is optional with the -a and -m operands. Use the -p option to specify the RIS area and one or more comma-separated products (prod) that the RIS client is autho- rized to install from the RIS server. The -p option is mandatory with the -a operand and optional with the -m operand. Use risN.arch to specify the RIS area (path), where N is an integer (0 or higher) indicating an existing RIS area on your RIS server, and arch is the system architecture, such as alpha. For example, ris2.alpha specifies a RIS area. One or more products (prod) are specified as product_N, where N is an integer (1 or higher) indicating a software product that you have installed in a RIS area on your server. For example, product_1 specifies a RIS area. Use the -t option to specify the network type nettype. Valid values are ethernet and ieee802 (token ring). The -t option is optional with the -a and -m operands. OPERANDS
client -h hwaddr [-i profset] -p path,prod[,prod]... [-t nettype] Adds a RIS client. The client argument is the network-recognized host name of the RIS client. List registered RIS clients. client [-h hwaddr] [-i profset] [path,prod[,prod]...] [-t nettype] Modifies a RIS client. The client argument is the network-recognized host name of the RIS client. Removes a RIS client. The client argument is the network-recognized host name of the RIS client. Shows software products in RIS environments. DESCRIPTION
The ris utility manages remote installation services (RIS), letting you install software from a RIS server over a TCP/IP local area network to a RIS client. You can install the base operating system or optional products with the ris utility. You also can add, list, modify and delete RIS clients, and install, show, and delete software products in RIS areas. Refer to the RESTRICTIONS section for more information. With no arguments, the /usr/sbin/ris command displays the RIS Utility Main Menu for an interactive RIS session. # /usr/sbin/ris *** RIS Utility Main Menu *** a) ADD a client d) DELETE software products i) INSTALL software products l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software products in remote installation environments x) EXIT Enter your choice: Available menu options depend upon previous actions, and choices not preceded by key letters are not available. For example, you cannot list, modify, or remove clients until you add a RIS client. In that case, the m, l, and r key letters are not displayed in front of their respective options, as shown in the following example: *** RIS Utility Main Menu *** a) ADD a client d) DELETE software products i) INSTALL software products ) LIST registered clients ) MODIFY a client ) REMOVE a client s) SHOW software products in remote installation environments x) EXIT Enter your choice: The ris utility uses the /usr/var/adm/ris directory as a base. When you install the first software product, the ris utility creates a RIS area on the disk. RIS areas are named risN.arch, where N is a sequentially-assigned integer starting with 0, and arch identifies the client's machine architecture, such as alpha. The first RIS area for Alpha clients is named ris0.alpha. Additional areas can be set up for the same architecture or other client architectures for organizational or performance reasons. A RIS area contains one or more software products. Each product includes software subsets that can be installed on authorized RIS clients over a local area network. Once software products are installed into a RIS area, RIS clients registered for that RIS area can use the setld utility over the network to install software from their RIS area. You must use the ris utility interactively to set up a RIS area. After you set up a RIS area on the RIS server, you can use the -a, -l, -m, -r, and -s command line operands to manage RIS clients and display information. The ris utility uses the /usr/var/adm/ris/clients/risdb database file to manage multiple clients. RESTRICTIONS
Tru64 UNIX RIS servers cannot install the base operating system on RIS clients that do not support the BOOTP Internet Boot Protocol. EXAMPLES
Invoke the ris utility with no arguments to start an interactive session: # /usr/sbin/ris *** RIS Utility Main Menu *** Choices without key letters are not available. a) ADD a client d) DELETE software products i) INSTALL software products l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software products in remote installation environments x) EXIT Enter your choice: You must use an interactive session to install or delete software products. After a RIS area is set up on the RIS server, you can use the -a, -l, -m, -r, and -s command line operands to manage RIS clients and display information. The following examples show how to use command line arguments to manage a client named stlouis. These examples assume that /usr/sbin is in your path. Backslashes () indicate line continuation and are not part of the command syntax. Adding a RIS Client Use the following syntax to add a RIS client: ris -a client -h addr -p path,prod[,prod][,prod]... Add RIS client stlouis and allow that client to install a product over the network: # ris -a stlouis -h xx-xx-xx-xx-xx-xx -p ris0.alpha,product_1 Modifying a RIS Client Use the following syntax to modify a RIS client: ris -m client [-h addr] [-ppath,prod[,prod][,prod]...] Modify RIS client stlouis and allow it to install an additional product over the network: # ris -m stlouis -p ris0.alpha,product_2 Removing a RIS Client Use the following syntax to remove a RIS client: ris -r client Remove RIS client stlouis: # ris -r stlouis FILES
Base directory for remote installation areas Directory for database Remote installation information database Directory containing configu- ration description files (CDF) used for installation cloning. SEE ALSO
Commands: setld(8), bootpd(8) Sharing Software on a Local Area Network Installation Guide Installation Guide -- Advanced Topics ris(8)
All times are GMT -4. The time now is 04:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy