answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 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?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the command to verify your source directory exists?

There are several ways to verify a directory. You could use the following test in a shell script: if [ -d some-directory ]; then # directory exists else # directory does not exist fi of use commands such as 'ls 'to see if it exists.


What Linux commands make your home directory the working directory?

the command 'cd ~' will get you there .


How do you pick a directory in command prompt?

type in DIR & for list of commands under the directory: DIR/?


Give an example of set of shell commands that will give you the number of files in a directory?

For Unix, try the following: ls -1 | grep -v '^\.' | wc -l


What are the two commands for setting permissions on a file or directory?

There is generally only 1 standard command for permissions on a file or directory - chmod. You can affect permissions by other commands such as changing the ownership or group ownership of a file or directory. Other commands may be specific to different versions of Unix and Linux, so are not listed here.


What are some commands to make a sub directory in Linux?

mkdir directoryname mkdir "directory name with spaces"


What does Active Directory use to allow administrators to query and modify users groups and computers?

The DS tools consist of the following commands DSQUERY - search for active directory objects matching criteria DSGET - retrieves selected attributes from active directory objects DSMOD - modify attributes for one or more active directory objects DSADD - create active directory objects DSMOVE - move active directory objects DSRM - removes/deletes active directory objects


Which commands will give you information about how much disk space each file in the current directory uses in unix?

Use the 'du' command in the directory you are interested in.


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 two commands can you use to delete directories?

AFAIK there's only one command to delete a directory. "rmdir" Removes the directory. If you only want to delete the content of the directory you can use "del <dir name>"


What are five unix commands?

cp - copy a file rm - delete a file mv - rename a file mkdir - create a directory rmdir - remove a directory etc...


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

cp * /tmp