-1
votes
0answers
30 views

BASH: Create a temporary password variable that doesn't get stored in history? [duplicate]

I have a script that runs a curl request in a loop. The request needs to include my credentials using the --user option. I'd like to assign my password to a local variable $password, and then supply ...
1
vote
1answer
38 views

Historical CPU Utilization by Service Name In RHEL 6.2

I need to implement historical CPU Utilization by service name in Linux Red Hat 6.2. Is there any software or command which can provide such details ?
0
votes
1answer
167 views

Disable the ability to hide bash command history

User can hide the command history in bash by either append a space before the command unset HISTFILE How to disable this?
22
votes
8answers
4k views

How to hide a password passed as command line argument?

I'm running a software daemon that requires for certain actions to enter a passphrase to unlock some features which looks for example like that: $ darkcoind masternode start <mypassphrase> ...
2
votes
1answer
107 views

yum and command line field

I'm reading the official documentation of Red Hat 6 (Deployment Guide) where in chapter 6 about yum they use the following command to show transactions: yum history info (id) this command should ...
0
votes
1answer
149 views

Where to find the terminal logs in Mysql

I connect to mysql client using the command mysql -uroot -p And I execute queries there. If I press the up arrow, i could see the history of almost all the queries there. Where will this query ...
1
vote
1answer
145 views

How to i skip history? [duplicate]

Possible Duplicate: Avoid to keep command in history Is there a facility to skip history for some commands in Linux? How can I skip history for a login? When I login as user "abc", I don't ...
13
votes
3answers
1k views

Strange bash history behaviour when running multiple sessions

How is command line history stored when I use multiple terminal windows? I know it is stored in .bash_history but I can't see the logic on what history is used if I open new window. It almost feels ...
0
votes
1answer
450 views

proceses cpu load history

I would ask if there is some linux tool that can track load of each application process and save it to the log file. When something in linux system "eat" CPU to 100% and I want see what happend and ...
12
votes
3answers
13k views

How do I extract login history?

I need to know the login history for specific user (i.e. login and logout time), How do I extract this history for a specific date range in Linux ?
3
votes
2answers
1k views

Preventing bash (and ksh) history alteration in Linux

From the looks of things, fixing ksh to make history alteration impossible is fairly easy. I've seen all the recommendations to make HIST* environment variables read-only, and the use of chattr to ...
7
votes
3answers
623 views

Can I log vi activity?

Is there any method to log vi activities? I suspect that another user is issuing command by going into the shell inside the vi editor, apparently those command doesn't record into history. Thanks
3
votes
4answers
2k views

Is it safe to remove all files in the /var/log when cleaning a server's history?

I need to erase all system logs etc. from a running Debian machine that's primarily running an Apache server. Is it safe to remove all the files in /var/log without recreating (by touching?) any of ...
2
votes
4answers
699 views

Ubuntu - Bash - How to Ctrl + R

I can't seem to locate recent commands I've run when I do Ctrl + R in my terminal, nor can I see them when I hit the up arrow. It was a long command. Is there a length limit to what is stored? I ...
2
votes
2answers
364 views

History in linux terminal

I'm running Ubuntu 9.1 and every time I open a terminal window, I lose the previous command's history. How can I configure it so it's kept even after rebooting? Thanks.
4
votes
6answers
3k views

How can I record Linux commands?

Is there a way to record the Linux commands I use and reuse them on another machine or in case I want to reinstall the machine? In example record how I set up NginX, PHP and permissions in my lab ...