answersLogoWhite

0

For Unix, try the following:

ls -1 | grep -v '^\.' | wc -l

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Unlock files in directory using dos commands?

Dos commands are used to create or delete directories. The ATTRIB Command is used for locking and unlocking of files.


Which commands could you use to copy all regular files in the current directory to tmp?

cp * /tmp


What are directories and how do they work when you use them to obtain information?

Directories are folders that store files and other directories. When you use directories to obtain information, you navigate through them by using commands like "cd" (change directory) to move to different directories. You can list files in a directory using commands like "ls" (list) to view the contents.


What is syntax in dos commands?

The most simple DOS command has to be RUN. A way to view files in a particular directory is DIR. To change to a new directory is CD /C. This means if your hard drive is letter C then it will become available as the new directory with CD(change directory). FORMAT C is an example of how to wipe out your hard drive completely to when it was brand new.


What types of information do directory lists generally contain?

A directory list usually contains lists of information. An example of a physical directory list would be the Yellow Pages. For computers, a directory list would either be a list of files or a list of links to other files.


How many files or entries can be included in the root directory?

The number of files or entries that can be included in a root directory will vary. However, they typically do not hold more than 512 entries.


What is a java directory?

collection of files and directory


What commands will list the files in the working directory in their reverse alphabetical order?

ls | sort -r Use ls command to list all files, in the present directory. Then pipe '|' the output of the ls command to sort -r. The -r option will reverse the sort.


Write and demonstrate the UNIX commands for the following Find the number files in a directory Create a sorted list of logged in users. Find the number of lines containing the text IGNOU?

You are asking for two different things here. For a sorted list of users, type 'users'. For the number of lines containing any text, type: grep -c IGNOU list-of-files


Write a shell script to create two directories and store five files in one directory using the related commands and to transfer all the Files to another directory?

#!/bin/sh mkdir homework lazyass for i in $(seq 5); do touch homework/file-$i; done mv homework/* lazyass


Which number of header files available in c?

Just go to your compiler's include directory, and count the files, there can be dozens of them (Or hundreds. Or more.)


Basic DOS commands?

ATTRIB ....... Displays or changes file attributes. CD ........... Displays the name of or changes the current directory. CLS .......... Clears the screen. COPY ......... Copies one or more files to another location. DATE ......... Displays or sets the date. DEL .......... Deletes one or more files. DIR .......... Displays a list of files and subdirectories in a directory. DISKCOMP ..... Compares the contents of two floppy disks. DISKCOPY ..... Copies the contents of one floppy disk to another. EXIT ......... Quits the CMD.EXE program (command interpreter). FIND ......... Searches for a text string in a file or files. FINDSTR ...... Searches for strings in files. HELP ......... Provides Help information for Windows commands. MD ........... Creates a directory. MKDIR ........ Creates a directory. MORE ......... Displays output one screen at a time. MOVE ......... Moves one or more files from one directory to another directory. PATH ......... Displays or sets a search path for executable files. PRINT ........ Prints a text file. PROMPT ....... Changes the Windows command prompt. RD ........... Removes a directory. REN .......... Renames a file or files. RENAME ....... Renames a file or files. REPLACE ...... Replaces files. RMDIR ........ Removes a directory. SET .......... Displays, sets, or removes Windows environment variables. TIME ......... Displays or sets the system time. TREE ......... Graphically displays the directory structure of a drive or path. TYPE ......... Displays the contents of a text file. XCOPY ........ Copies files and directory trees. To see the full list use the "HELP" command at the DOS prompt.