Sponsored Content
Full Discussion: Solaris Command
Operating Systems Solaris Solaris Command Post 302128472 by manoj.solaris on Wednesday 25th of July 2007 04:24:28 AM
Old 07-25-2007
Solaris Command

Hi,

I want to know is it possible to know the time of command user has executed ?
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
lastcomm(1)							   User Commands						       lastcomm(1)

NAME
lastcomm - display the last commands executed, in reverse order SYNOPSIS
lastcomm [-f file] [-x] [command-name] ... [user-name] ... [terminal-name] ... DESCRIPTION
The lastcomm command gives information on previously executed commands. lastcomm with no arguments displays information about all the com- mands recorded during the current accounting file's lifetime. If called with arguments, lastcomm only displays accounting entries with a matching command-name, user-name, or terminal-name. If extended process accounting is active (see acctadm(1M)) and is recording the appro- priate data items, lastcomm attempts to take data from the current extended process accounting file. If standard process accounting is active, lastcomm takes data from the current standard accounting file (see acct(2)). If terminal-name is `- -', there was no controlling TTY for the process. The process was probably executed during boot time. If terminal- name is `??', the controlling TTY could not be decoded into a printable name. For each process entry, lastcomm displays the following items of information: o The command name under which the process was called. o One or more flags indicating special information about the process. The flags have the following meanings: F The process performed a fork but not an exec. S The process ran as a set-user-id program. o The name of the user who ran the process. o The terminal which the user was logged in on at the time (if applicable). o The amount of CPU time used by the process (in seconds). o The date and time the process exited. OPTIONS
The following options are supported: -f file Uses file as the source of accounting data. file may be either an extended process accounting file or a standard process accounting file. -x Uses the currently active extended process accounting file. If extended processing accounting is inactive, no output will be produced. EXAMPLES
Example 1: Listing executions of named commands The command example% lastcomm a.out root term/01 produces a listing of all the executions of commands named a.out by user root while using the terminal term/01. Example 2: Listing all user commands The command example% lastcomm root produces a listing of all the commands executed by user root. FILES
/var/adm/pacct standard accounting file /var/adm/exacct/proc extended accounting file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWesu | +-----------------------------+-----------------------------+ SEE ALSO
last(1), acctadm(1M), acct(2), acct.h(3HEAD), sigvec(3UCB), core(4), attributes(5) SunOS 5.10 10 Jan 2000 lastcomm(1)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy