05-23-2005
displaying with ls
hi,
how can display year parameter also while listing files from a directory?it displyas only if last acces sis more than 1 yr i guess.can it be dispalyed using some option or some method?
thanks and regards
vivek.s
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am beginner to UNIX.
I wanted to display 5 filesname with size from BIN directory. The order of display should be descending order in size.
Can help me. (1 Reply)
Discussion started by: giridher2000
1 Replies
2. Solaris
Hi,
Does anyone know what i need to do to get the 'é' character to display on a Solaris 9 server. When i try to cut and paste it onto some of my machines via telnet it displays an 'i' but other machines with the same OS version are ok. It also doesn't like Japanese Characters.
Any help would be... (0 Replies)
Discussion started by: mwfisher
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have to append "abc$abc" to the existing data in solaris.When i run my unix script it is writing only "abc" instead of "abc$abc"
Please let me know if we can write $ to the data.Please advice! (2 Replies)
Discussion started by: ammu
2 Replies
4. Shell Programming and Scripting
Hi,
Am new to unix..i want some help..
when am using ls command like ls-ltr it displaying output like this:
rw-r--r-- 1 infauser dba 36 Jun 16 12:36 s1_midify
-rw-r--r-- 1 infauser dba 66 Jun 16 12:42 sample_one
-rw-r--r-- 1 infauser dba 77 Jun 16 13:05... (3 Replies)
Discussion started by: sujana
3 Replies
5. UNIX for Dummies Questions & Answers
I can set permissions on a file with "chmod 777 filename" using octal for the permission levels. Is there a simple way to display the octals rather than the 'rwxrwxrwx' format?
Thanks! (1 Reply)
Discussion started by: JTeter
1 Replies
6. Shell Programming and Scripting
I have two input files like this:
File-1
-----
a1234 abc town
f2345 def village
t5678 pqr county
File-2
------
123456 test1 test2 test3 id-a1234
789012 test2 test4 id-t5678
456789 test7 id-b1234
I want to check the lines that match the first field of File-1 in... (7 Replies)
Discussion started by: ajay41aj
7 Replies
7. UNIX for Dummies Questions & Answers
I'm unsure about the topic title, but this is what I want to do.
I have a directory, named /opt/extra and and I want it to be displayed when I issue df command. Just by using df only, not df /opt/extra.
OS: Solaris 10
Current df output
root@jebat10 # df -k
Filesystem kbytes ... (3 Replies)
Discussion started by: Olli.Lang
3 Replies
8. UNIX for Dummies Questions & Answers
Hi guys! I am very much new to UNIX...and I was just wondering on how you would display this text format in UNIX with only just one command :
Text 1
Text 2
Text 3
Texts are in aligned vertically in such format...Thanks for your help :) (8 Replies)
Discussion started by: Knowledge_Xfer
8 Replies
9. Shell Programming and Scripting
Hi I am kind of stuck
I need help with printing only the names of the folder in the format
LAST NAME, F
so last name and the first character of first name
using ls -l command in the /home directory
currently they are in the format firstname.lastname
please advice (4 Replies)
Discussion started by: classic
4 Replies
10. Windows & DOS: Issues & Discussions
I created a directory test. But it is not displaying the group name. Windows 2003R2 machine.
drwxr-xr-x 1 vivek 0 0 Sep 2 12:39 test
uid=1073778986(vivek) gid=1073742337(+Domain Users) groups=1073742337(+Domain Users), 65792(+Everyone), 131616(+Administrators), 4095(CurrentSession),... (1 Reply)
Discussion started by: vkk
1 Replies
ch_rc(1M) ch_rc(1M)
NAME
ch_rc - change system configuration file
SYNOPSIS
root] {parameter|parameter=value}...] [file...]
DESCRIPTION
manages the addition, modification, removal, and retrieval of information stored in files having the format of those in the directory.
Parameter names are treated as strings. Thus, has no special meaning to in relation to other parameters named
Options
file Specify the file(s) to be used as the configuration database. If no file is specified, the set of files used by defaults
to and all files in the directory.
Modification and deletion of configuration parameters occurs in the file where the parameter is found.
Add or modify a parameter definition. For each parameter specified
on the command line, if the parameter is found in the specified (or default) files, it is modified to reflect the speci-
fied value. If the parameter is not found, it is added to the specified file(s).
If a new parameter is being defined, one or more files must be specified on the command line; the specified files are
those in which the parameter will be defined.
Remove a parameter definition. For each parameter name specified
on the command line, remove any occurrence of that parameter from the specified file(s).
List configuration values. For each parameter specified on the
command line, output every definition of the parameter from the specified file(s). Output consists of only the values,
one per line.
Specify a parameter name or name/value pair. If a name and value
is expected, but only a name is specified, the value will be set to the empty string. For example, specifying or will
result in and respectively.
Due to shell quoting rules, if you need a quoted parameter value, you must protect the quotes from the shell. For exam-
ple,
yields:
which is an error, whereas,
yields:
Verbose. When used with the
option, the option causes a verbose listing to be output. This listing includes a filename followed by the entire line
containing the specified parameter for each occurrance of the parameter.
The option is used to list all occurances of array parameters matching the parameters specified on the command line.
For example,
may emit the following output:
Normally, the files specified on the command line are used as specified.
By specifying a root directory with the option, all files (including the default files if none are specified) will be
interpreted relative to root.
For example, if root is specified as and is specified on the command line, it will be interpreted as
RETURN VALUE
exits with one of the following values:
0 add/delete/list successful
1 command line syntax/usage error
2 can not access one or more of the listed (or default) files
3 can not open/create/write file
4 memory error
5 no files specified on command line for add option
EXAMPLES
Files in the directory have the following format:
WARNINGS
does not interpret configuration files; it only does pattern matching. As a result, if comments appear on lines containing parameter defi-
nitions, the comments will also appear in output when using the option.
cannot parse multiple parameter definitions which occur on the same line of a file.
AUTHOR
was developed by HP.
FILES
system configuration database driver file
directory containing system configuration files
SEE ALSO
rc.config(4).
ch_rc(1M)