Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

history file

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
Hello,
1) When I use fuser, I get bunch of pid listed (I believe so), but it is attached with an 'o' at the end, eg 12883o, what the 'o' means? 'obsolete' ? because when I try with ps -ef 12883o, I don't have any ps listing, but if I use it without 'o', then I have a process with id '12883' listed.

2) I have 2 machines, one I can list the history file more than 100 lines (history -100), the other, I can not. Where do I set up the history file to keep track of more line (.profile)?, and is this the file '.bash_history' that contain the records or it depends on the shell, 'cause I see the sh_history?

Thanks
 
My recomendation is to look at "man bash". You are right in the history file is the file .bash_history. Looking at the man page, there are some options you need to use to enable history.

What is the options you are using with the command fuser?

 
1) The "o" is some kind of flag, I remember it's described in the man page (can't look at it now, I'm @ home). One way to get rid of it (for further processing of the output) is to redirect stderr to /dev/null: [tt]fuser <your_options_here> 2>/dev/null[/tt]

 
and here is the "o":

[tt]man fuser:

"
...
o Indicates that the process is using the file as an open file.
...
"
[/tt]




 
Thanks all,
I should look at the man page before asking.! Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top