answersLogoWhite

0

Use "time".

For example instead of using "ls" to get a directory listing, using "time ls" will give the directory listing as well as the time to execute the ls command.

You can execute "ps -ef" and look in the TIME column to see how many minutes and seconds of CPU time each process has used.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is Unix configuration?

Unix configuration is the process of tailoring a freshly installed version of Unix to your particular environment. Each Unix system may do that differently.


Does each UNIX process have its own system data segment containing data needed by the operating system when the process is active?

Yes, each process has its own private data segment that is not shared with other processes. Processes can share executable code because the code does not get modified, but data is particular to the program that is using it, so it must be kept separate.


What is interprocess communication in UNIX?

Interprocess communication allows one process to send or receive a message to or from another process. Normally, in Unix, processes are in a separate address space and cannot exchange information. With interprocess communication, they are allowed to exchange information to each other.


Explain different layers of UNIX operating system Also explain interaction between shell and kernel using any suitable command?

Layers of UNIX Operation System along with an example to illustrate the interaction between shell and Kernel.The UNIX operating system is made up of three parts: the kernel, the shell and the programs.The kernelThe kernel of UNIX is the hub of the operating system: it allocates time and memory to programs and handles the filestore and communications in response to system calls.The shellThe shell acts as an interface between the user and the kernel. The shell is a command line interpreter (CLI). It interprets the commands the user types in and arranges for them to be carried out. The commands are themselves programs: when they terminate, the shell gives the user another prompt ($ on our systems).The programsA program is refereed to as a process while the kernel is running it. The Kernel can run the same shell program(or any other program) simultaneously for many users on a Unix System, and each running copy of the program is a separate process. The Shell is also a program that the UNIX Kernel runs for the user.As an illustration of the way that the shell and the kernel work together, suppose a user types rm myfile(which has the effect of removing the file myfile). The shell searches the filestore for the file containing the program rm, and then requests the kernel, through system calls, to execute the program rm on myfile. When the process rm myfile has finished running, the shell then returns the UNIX prompt $ to the user, indicating that it is waiting for further commands.- Submitted by SRKStudent of NIITContact No. : +91-9534330837Email: shoaibrazakhan@gmail.com


What makes Unix a multi-user operating system?

Unix is considered a multi-user operating system because multiple users may use the server/system at the same time. Each user has their own address and process space and they don't interfere with each other.


What is the difference between program and process?

Program is a set of instruction whereas process is program in execution. Program is passive entity whereas process is active entity .Program has single instance whereas process has several instances.For eg.several notepad windows can be opened but same program is executed behind each window. Program is dependent on logic used whereas process is dependent on program.


What is the process where the programmer steps through each of the program's statements one by one is called?

It is a "trace" of the program.


What are The process the CPU performs for each program instruction is called the?

Machine cycle


What is back up and restoring in Unix?

Backup is the process of making sure there is another copy of each file in case there is a disaster. Restoring is the process of bringing back a copy of a file or directory, etc., from the backup media.


How do you install PHP on Unix?

To install from source, you may have to use ./configure make make install each in case the server is a unix server


Is the distinction between program and process only important in multiprocessor systems?

Computers can do many things at the same time. In order to keep track of those things, each is assigned a process. In the process, the computer keeps track of which program is running, how much memory it needs, what files it has open, etc. A "process", therefore, is something like a unit of work. Inside a process, a program runs, and the program may cause other "processes" to start, inside of which will be other programs. The computer will initiate a process also when you double click on an icon to start a program. A program can start other processes, in fact many pieces of software are actually running many processes with little pieces of the software running in each process, and they all "talk" to each other, and it looks like a seamless one program event to you.


How do you find files in Linux and Unix?

Linux and Unix and their variants have several different ways of locating files. each of the below commands can be used to locate files.findlocatewheriswhich