06-14-2013
Thank You hergp.
Just didn't think of -h option. I always thought h option in ls gives the output in MB.
Regarding my original question :
In future, If i want to pipe the second column of the output to another command as shown in du command's output above , what should I do ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Last week I was using the command:
' find /directory -mtime -2 -print' and it showed all the files modified within that period. However, now it only displays the directories and not the files modified. The only thing that changed is that I was granted access to some files.
Thanks (2 Replies)
Discussion started by: rhayabusa
2 Replies
2. Shell Programming and Scripting
I need to find out the last modified time for the files which are older than 6 months. If I use ls -l, the files which are older than 6 months, I am just getting the day, month and year instead of exact time. I am using Korn shell, and SUN OS.
Thanks in Advance,
Kiran (3 Replies)
Discussion started by: kumariak
3 Replies
3. Solaris
Hi ,
I am trying to find out the List of files modified or added aftter installation of any component on SUN solaris box .
But i am not able to do it using ls or find command .
Can somebody help me out ?
Thanks
Sanjay Gupta (2 Replies)
Discussion started by: sanajyg_mnit
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a requirement to find out the files which are modified in the last 10 minutes.
I tried the find command with -amin and -mmin options, but its not working on my AIX server.
Can anyone of you could help me.
Thanks in advance for your help.
Raju (3 Replies)
Discussion started by: rajus19
3 Replies
5. Shell Programming and Scripting
Hi,
I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10).
For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies
6. Shell Programming and Scripting
Hello,
I'm pretty stumped, and I don't know why I am not able to redirect the output to the 'graphme' file with the command below in Fedora 18.
tcpdump -l -n -t "tcp == 18" | perl -ane '($s,$j)=split(/,/,$F,2); print "$s\n";' > graphme
In case you're wondering, I was following the example... (2 Replies)
Discussion started by: ConcealedKnight
2 Replies
7. Shell Programming and Scripting
Need help reading file last modified date in format:
Filename (relative path);YYYYMMDDHHMMSS
And then write it back. My idea is to backup it to a text file to restore later.
Checked this command but does not work:
Getting the Last Modification Timestamp of a File with Stat
$ stat -f... (5 Replies)
Discussion started by: Tribe
5 Replies
8. UNIX for Dummies Questions & Answers
This should recursively walk through all dirictories and
search for a specified string in all present files, if found
output manicured content (eg some regex) with CAT into
a specified directory (eg /tmp/)
one by one, keeping the original names
This is what I have so far, which seems to... (1 Reply)
Discussion started by: lowmaster
1 Replies
9. Shell Programming and Scripting
Hi,
I would like use the output of my cut command as a variable in my following awk command. Here's what I've written.
cut -f1 info.txt | awk -v i=xargs -F'' '{if($6 == $i) print $20}' summary.txt
Where obviously the 'xargs' doesn't do what I want. How can I pass my cut result to my awk... (3 Replies)
Discussion started by: heyooo
3 Replies
LEARN ABOUT CENTOS
yum-verify
yum-verify(1) yum-verify(1)
NAME
yum verify plugin
SYNOPSIS
yum [options] verify [package ...]
DESCRIPTION
This plugin extends yum with some commands that give verification information on the installed system, much like rpm -V. You can change how
the verification is done and which files it applies to.
added yum commands are:
* verify
* verify-rpm
* verify-all
all of which take the same arguments as the list yum command, obviously you can only verify packages that are installed on the system.
verify Is the generic verification command, and is intended to give the most useful output. It removes all false matches due to multilib
and ignores changes to configuration files by default.
verify-rpm
Is meant to be 100% compatible with rpm -V output, and any differences should be considered as bugs.
verify-all
Is used to list all the differences, including some that rpm itself will ignore.
GENERAL OPTIONS
These are the options added to yum that are available in the verify commands. They are:
--verify-filenames
This option is used to limit the filenames that the packages will perform verification.
--verify-configuration-files
This option is only useful in the generic verify command, and will enable/disable verification of files that are tagged as configu-
ration files.
EXAMPLES
To do the same as rpm -Va, use:
yum verify-rpm
To verify the packages starting with the name yum, use:
yum verify 'yum*'
To verify the binaries that are in a bin directory, use:
yum verify --verify-filenames='*bin/*'
To verify all include files, Eg. for multilib problems, use:
yum verify-all --verify-filenames='/usr/include/*'
SEE ALSO
yum (8)
yum.conf (5)
the verify.conf file in /etc/yum/plugins.d
AUTHORS
James Antill <james.antill@redhat.com>.
BUGS
Currently yum-verify does not do verify-script checking or dependency checking,
only file checking.
Should you find any other bugs, you should first
consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if unsuccessful
in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org.
To file a bug use http://bugzilla.redhat.com for Fedora/RHEL/Centos
related bugs and http://yum.baseurl.org/report for all other bugs.
James Antill 01 March 2008 yum-verify(1)