[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Solaris command equivalents in Linux




I hope this is what you're looking for.. Most of these could be easily turned into shell scripts.. and anything using lsof, you could probably do as a quick shell script that directly accesses /proc.


1) pargs (Print process arguments, environmental variables, etc)

ps auxwwfe


you can also get env from cat /proc/$PID/environ

2) pcred (Display process credentials)

ps -eo pid,user,cmd,cwd,euid,egid,gid,uid,fgid,pgid


etc.. there is probably an easier way.. I'm not sure off hand.

3) pfiles (Display open file info)

lsof



4) pldd (List dynamic libs associated to process)

lsof -p PID


can also look at /proc/$PID/maps


5) pwdx (Display current working directory for process)

lsof -p PID|grep cwd (There is probably an option to only show cwd)

alternate:
ls -l /proc/$PID/cwd



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]