How to measure the time required to run a program

0 votes

Hi Guys,

I am trying to find the space-time or CPU utilization of a program in Linux. How can I do that?

Oct 12, 2020 in Linux Administration by akhtar
• 38,230 points
433 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the time command in your Linux system. The time command is used to determine how long a given command takes to run. It is useful for testing the performance of your scripts and commands.

$ time date.py
answered Oct 12, 2020 by MD
• 95,440 points

Related Questions In Linux Administration

0 votes
2 answers

how to loop through the content of a file using bash

#!/bin/bash for i in  `cat peptides.txt` do echo $i done READ MORE

answered Sep 5, 2020 in Linux Administration by Prakash K. Aithal
2,503 views
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
763 views
0 votes
1 answer
0 votes
1 answer

How to execute a linux command repeatedly after a set time?

To watch the step every say 30 ...READ MORE

answered Jul 26, 2019 in Linux Administration by ajs3033
• 7,300 points
766 views
0 votes
1 answer
0 votes
1 answer

What is the difference between ctrl z and ctrl c in command line?

Hi@akhtar, Generally, these two commands are used to ...READ MORE

answered Feb 24, 2020 in Linux Administration by MD
• 95,440 points
45,129 views
0 votes
1 answer

How to create one new partition in my hard disk in Linux?

Hi@akhtar, To create new partition you can follow ...READ MORE

answered Apr 7, 2020 in Linux Administration by MD
• 95,440 points
988 views
0 votes
1 answer

not able to run netstat-tnlp in Linux.

Hi@akhtar, In Linux system netstat-tnlp command comes from ...READ MORE

answered Apr 16, 2020 in Linux Administration by MD
• 95,440 points
785 views
0 votes
1 answer

How to find the process ID of a program?

Hi@akhtar, You can find one program named pgrep ...READ MORE

answered Oct 12, 2020 in Linux Administration by MD
• 95,440 points
603 views
0 votes
1 answer

How to run GUI program in SSH server from remote desktop?

Hi@akhtar, First you have to configure SSH server ...READ MORE

answered Mar 31, 2020 in Linux Administration by MD
• 95,440 points
4,192 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP