10 More Discussions You Might Find Interesting
1. AIX
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a main folder 'home'. Lets say there is a folder 'bin' under 'home'. I want to check the list of files under subdirectories present under the /bin directory created in the last 24 hours.
I am using the following find command under home/bin directory:
find . -mtime -1 -print
... (3 Replies)
Discussion started by: DJose
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to list all files present in directory those contains one specific word but exclude other.
If possible suggest unix commands instead of script to do so.
e.g.
List all files name from directory which are having "PROMOTION" word but not "LEN_PROMOTION".
Thanks (4 Replies)
Discussion started by: gauravgautam135
4 Replies
4. UNIX for Dummies Questions & Answers
Hello,
Using ftp i was able to get a directory listing to local directory.
ftp - i <host_name>
ftp <user>
ftp <password>
dir <dir>
200 PORT command successful
150 Opening ASCII mode data connection for file list
-rw-rw-r-- 1 <uuu> <kkk> 160384 Apr 13 19:38 walmart.txt
226... (5 Replies)
Discussion started by: pavan_test
5 Replies
5. UNIX for Dummies Questions & Answers
Hi ,
I am trying to find some files on a remote machine using the find command.
>ssh -q atukuri@remotehostname find /home/atukuri/ -name abc.txt
/home/atukuri/abc.txt
The above command works fine and lists the file, but if I want to do a long listing of files (ls -l) its not working . ... (2 Replies)
Discussion started by: atukuri
2 Replies
6. UNIX for Dummies Questions & Answers
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (./directory name/file name). I was... (2 Replies)
Discussion started by: Straitsfan
2 Replies
7. UNIX for Dummies Questions & Answers
Hello All
I want to list files using SFTP. this should work the same way as
ls -Ap1t $dir is working in a perl program. but for SFTP i dont find any option like as A,p,1,t.so how to use this (0 Replies)
Discussion started by: vikas_poonia
0 Replies
8. UNIX for Dummies Questions & Answers
I've searched the man page for an option for the ls command to print the number of files in a directory. I'm moving files and folders around and thought a count of files would be a quick way to determine if I was missed one somewhere. Some "unix's" shells do this I think... maybe linux...
... (4 Replies)
Discussion started by: jimmyc
4 Replies
9. Solaris
I've backed up several files to tape using tar, and wish to list those that have backed up.
% tar cvf /dev/rmt/2un /s_1/oradata/pgpub/config.ora
a /s_1/oradata/pgpub/config.ora 2 tape blocks
But when I go to list the files:
% tar tvf /dev/rmt/2un
tar: tape read error
What am I... (3 Replies)
Discussion started by: FredSmith
3 Replies
10. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies