Sponsored Content
Top Forums UNIX for Dummies Questions & Answers ls command for listing the number of files Post 302111992 by ghostdog74 on Friday 23rd of March 2007 09:44:13 PM
Old 03-23-2007
one little minor problem, at least what i have encountered, is that ls -l list out the files, including the "total" line on the very first line. wc -l will count that line too. So its just sufficient to exclude the switch , or use ls -1 instead.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

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

2. Solaris

TAR command , listing backed up files

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

3. UNIX for Dummies Questions & Answers

unix command to cound the number of files in a folder

Hi All Can some one help me out. Please tell the unix command to cound the number of files in a folder. Ungent please# Thanks manas (6 Replies)
Discussion started by: manas6
6 Replies

4. UNIX for Dummies Questions & Answers

find command -- listing files twice

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

5. UNIX for Dummies Questions & Answers

Long listing of files using find command on remote server via SSH

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. AIX

command to verify number of files

Guy's I have file system called /appspft has millions of files and I want to know exactly how many file under it Pls advice with that command to verify number of files .. (3 Replies)
Discussion started by: Mr.AIX
3 Replies

7. Solaris

SFTP Command Help - listing files

Ok I am just going to explain what I am running step by step sftp user@hostname sftp > ls < when I run the command "ls" I get a long listing the old version, on the new version I get a short listing how can I change my new version to give me long listing by default (1 Reply)
Discussion started by: slufoot80
1 Replies

8. UNIX for Dummies Questions & Answers

Unix Command for listing files containing one text but not other.

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

9. UNIX for Dummies Questions & Answers

Listing only the files under a directory from the result of find command

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

10. AIX

Getting files through find command and listing file modification time upto seconds

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
VM_STAT(1)						    BSD General Commands Manual 						VM_STAT(1)

NAME
vm_stat -- show Mach virtual memory statistics SYNOPSIS
vm_stat [[-c count] interval] DESCRIPTION
vm_stat displays Mach virtual memory statistics. If the optional interval is specified, then vm_stat will display the statistics every interval seconds. In this case, each line of output displays the change in each statistic (an interval count of 1 displays the values per second). However, the first line of output following each banner displays the system-wide totals for each statistic. If a count is pro- vided, the command will terminate after count intervals. The following values are displayed: Pages free the total number of free pages in the system. Pages active the total number of pages currently in use and pageable. Pages inactive the total number of pages on the inactive list. Pages speculative the total number of pages on the speculative list. Pages throttled the total number of pages on the throttled list (not wired but not pageable). Pages wired down the total number of pages wired down. That is, pages that cannot be paged out. Pages purgeable the total number of purgeable pages. Translation faults the number of times the "vm_fault" routine has been called. Pages copy-on-write the number of faults that caused a page to be copied (generally caused by copy-on-write faults). Pages zero filled the total number of pages that have been zero-filled on demand. Pages reactivated the total number of pages that have been moved from the inactive list to the active list (reactivated). Pages purged the total number of pages that have been purged. File-backed pages the total number of pages that are file-backed (non-swap) Anonymous pages the total number of pages that are anonymous Uncompressed pages the total number of pages (uncompressed) held within the compressor Pages used by VM compressor: the number of pages used to store compressed VM pages. Pages decompressed the total number of pages that have been decompressed by the VM compressor. Pages compressed the total number of pages that have been compressed by the VM compressor. Pageins the total number of requests for pages from a pager (such as the inode pager). Pageouts the total number of pages that have been paged out. Swapins the total number of compressed pages that have been swapped out to disk. Swapouts the total number of compressed pages that have been swapped back in from disk. If interval is not specified, then vm_stat displays all accumulated statistics along with the page size. Mac OS X August 13, 1997 Mac OS X
All times are GMT -4. The time now is 04:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy