Solaris Command


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris Command
# 1  
Old 07-25-2007
Solaris Command

Hi,

I want to know is it possible to know the time of command user has executed ?
# 2  
Old 07-25-2007
If you're using Process Accounting - yes

Code:
# # turn process accounting on
# /usr/lib/acct/accton /var/adm/pacct 
# # execute some commands
# pwd
/root
# df -h > /dev/null
# # check commands executed
# lastcomm
df          root     pts/3          0.00 secs Wed Jul 25 22:34
accton   S  root     pts/3          0.00 secs Wed Jul 25 22:34
# # turn process accounting off
# /usr/lib/acct/accton

man accton

Cheers,
ZB
# 3  
Old 07-25-2007
Or if it's just one command you want the time of, just use the "time" command before running it.

For example:

myhost:/tmp # time ls -lR * > /dev/null

real 0m0.005s
user 0m0.001s
sys 0m0.004s
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

axel command in solaris

HI guys, I am using axel command in soalris environment. but it is not returning any output when i gave below command #/usr/local/bin/axel -a -n 10 ftp:<ip>/directory/path Initializing download: ftp:<ip>/directory/path what can i do to know whether this is running or not (background) ... (1 Reply)
Discussion started by: nareshkumar1
1 Replies

2. Solaris

Command in solaris

Need commands for following, At any give time Peak CPU average CPU Free memory paging swap % If any one can help in linux also, it would be fine. thanks Gopalan V (2 Replies)
Discussion started by: ilugopal
2 Replies

3. Solaris

what is the command to see the java version in solaris 8 and solaris 10

what is the command to see the java version in solaris 8 and solaris 10 (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies

4. Shell Programming and Scripting

Solaris command needed.......

Hi can anyone tell me what command should i use to find the files which have been created within 24hrs in / . I tried with this find mtime 24 / But its not working. Pls let me know to solve the issue. (3 Replies)
Discussion started by: vinuvinod
3 Replies

5. Solaris

Solaris Top Command

hi all anyone can help me to enable top command on solaris 9 version Regards (9 Replies)
Discussion started by: maooah
9 Replies

6. UNIX for Dummies Questions & Answers

Solaris 8 to Solaris 10 "metatool command"

We have had a third party upgrade a solaris 8 server to solaris 10. On solaris 8 I used a command called metatool so I could get a gui view of the disk layouts. What the command under Solaris 10? Does it work in the same way as metatool? Thanks Mark (1 Reply)
Discussion started by: miredale
1 Replies

7. Solaris

Command history in Solaris

Can someone tell me what I can do to maintain a single history file ? As it is it creates a new file for each session. >ls -a .sh_* .sh_history.10106 .sh_history.15240 .sh_history.21635 .sh_history.4291 .sh_history.11311 .sh_history.16593 .sh_history.23709 .sh_history.4661... (3 Replies)
Discussion started by: jxh461
3 Replies

8. UNIX for Dummies Questions & Answers

mv command Solaris 10

Hi, does any one know what happens if you issue command mv file* and forget to write down the target directory? I lost with this command many files, if any one can tell me where to look for them I'll appreciate a lot. (2 Replies)
Discussion started by: sbnik
2 Replies

9. UNIX for Dummies Questions & Answers

df command on Linux and Solaris

Hello all, Does anyone know how to fix this? My directory is mounted from a Soalris Server and both Solaris and Linux Client are mountting my directory. But when I use df and awk together the reset are different on the platform. under Solaris clinet I get whant I want: df -k... (1 Reply)
Discussion started by: larry
1 Replies

10. UNIX for Dummies Questions & Answers

Nohup command on Solaris

Hi, I have a general question on using the "nohup" command. As far as I've got it, submmitting a job with no hang up specified, should result in the job running until completion, regardless of whether the session that submitted the job(parent) is still active. This is very helpful when doing... (1 Reply)
Discussion started by: errolg
1 Replies
Login or Register to Ask a Question