General :: How To Know Who Deleted Bash History?

Apr 8, 2011

In my organization, we have a centralized home directory for all users which gets mounted from all the machine where user logs in.Since any XYZ user can login to any of hundreds test machines and run 'sudo su - myusername', hence taking control of my home dir.How do I track who took control of my home dir and deleted its contents.

View 3 Replies


ADVERTISEMENT

General :: Keep Bash History Across Sessions?

Nov 17, 2010

I am working on a x86 target running fedora 9.

Whenever I reboot it, my history returns to some state, and I do not have commands I did in the sessions before the reboot.

What I have to change to have updated history I had before reboot?

View 2 Replies View Related

General :: How To Copy Bash History

Feb 10, 2011

what command do i use to copy .bash_history to /tmp location?

View 9 Replies View Related

General :: How To Unlimited Bash/shell History

May 4, 2010

Is there a way to define an unlimited history in Bash ?

View 3 Replies View Related

General :: Get Bash History From Another Shell Instance

Aug 18, 2010

Possible Duplicate: Can history files be unified in bash? I have bash running in an ssh session, call this session A. I leave the office, go home, ssh to the same box, call this session B. From session B, I'd like to be able to look at the history of session A.

View 1 Replies View Related

General :: How To Get Bash Shell History Range

Oct 4, 2010

How can I get/filter history entries in a specific range?I have a large history file and frequently usehistory | grep somecommandNow, my memory is pretty bad and I also want to see what else I did around the time I entered the command.For now I do this:get match, say 4992 somecommand, then I do history | grep 49[0-9][0-9]this is usually good enough, but I would much rather do it more precisely, that is see commands from 4972 to 5012, that is 20 commands before and 20 after. I am wondering if there is an easier way? I suspect, a custom script is in order, but perhaps someone else has done something similar before.

View 2 Replies View Related

General :: Bash History, Delete Recurring Entries?

Jun 30, 2011

Is there a way to get the bash history to delete older entries that are identical to the new one?Say the bash history would look like this normally:

Code:
cd ~
ls -l

[code]...

View 4 Replies View Related

General :: Delete Bash Terminal History Upto Certain No. Of Commands?

Jan 12, 2010

i want to delete some say 10 previous commands in bash shell!

View 3 Replies View Related

General :: Bash History And Keeping Track Of Current Working Directory?

Jun 8, 2010

I would like to keep track of not only what bash commands I used and when, but also where they were issued from, i.e. what was the current working directory when I issued "foobar" on a particular day and time. Can we ask bash history to keep track of working directories too? I have tried to get an idea of this reading the enormous "man bash", but I don't seem to have an answer yet either way.

View 11 Replies View Related

General :: System Bash Shell Copy Previous Lines (not History) With Keyboard?

Jun 14, 2011

Is it possible to use the keyboard in order to select some text in the terminal windows that is not in the currently edited line? (for example, in order to copy part of previous command output).

View 3 Replies View Related

Ubuntu Multimedia :: Any Way To Pull Up Deleted History With Terminal

Jul 11, 2011

Is there any way to pull up deleted history with terminal and delete it permanently so that even a computer forensic couldn't pull it back up?

View 2 Replies View Related

Server :: All Previous Commands History Is Deleted When Rebooted Or Relogining The RHEL4?

Apr 21, 2010

i have RHEL4. i m facing problem that all the previous command history is deleted when i restart the server or relogin the server. it is happening with all the users not with any one user.

View 2 Replies View Related

General :: Check The Browsing History By Individual Users Web Surfing History By Their IP Addresses?

Jun 29, 2010

I am using squid proxy server for sharing Internet in my internal network. I would like to know that how can I check the browsing history by individual users web surfing history by their IP addresses?

View 1 Replies View Related

General :: Write A Bash Script To Restore Deleted Files To Original Location?

Dec 5, 2010

I have managed to write a bash script that moves files to the recylce bin instead of being deleted. Then (with a bit of assistance) wrote another bash script that deletes the files from the recycle bin. Now I need to write one that will restore the files preferably to their original location? I am very new to linux and stuggling with where to even begin...any ideas? There seems to be some advice about creating a cloning tree, but I've never heard of them?

View 8 Replies View Related

General :: Bash Command History Update Before Execution Of Command

Jun 7, 2010

Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).

I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?

View 1 Replies View Related

General :: Command To Delete Bash Command History?

May 31, 2010

What's the command to delete bash command history?

View 4 Replies View Related

Ubuntu :: Terminal, Bash Have No History?

Feb 15, 2010

terminal i open i have no history; the history is kept only in that terminal and is gone when i exit the terminal.If I count lines:as a user:

Code:
$ wc -l .bash_history
wc: .bash_history: Permission denied

[code]....

View 2 Replies View Related

Ubuntu :: Control Duplicates In Bash History?

Oct 19, 2010

I have tried a combination of the following lines in .bashrc to try and control duplicates in the bash history file:

export HISTCONTROL=ignoreboth
export HISTCONTROL=erasedups
export HISTCONTROL=ignoredups

[code]....

View 5 Replies View Related

Ubuntu Servers :: New Users Don't Have Bash History?

Nov 23, 2010

installed Ubuntu Server Edition and I've found that my first user has a bash history and I can turn on a coloured prompt by editing my .bashrc etc but new users don't have that!I did : useradd -d /home/newb -m newbpasswd newband the correct looking .bashrc file appears to be in /home/newb but it is being ignore by bash when logged in as newb. Instead I am presented with just a dollar prompt instead of "newb@server"how can I sort out my users with proper prompts?

View 1 Replies View Related

Programming :: History -c Is Not Working In Bash Script?

Mar 26, 2010

i wrote a script to run over a macintosh system

Quote:

#!/bin/bash
history -c
clear

but the script not doing what i am trying to achieve.

View 1 Replies View Related

Programming :: Save Bash History Permanently?

Oct 7, 2010

Lets say I wanted to save my bash history permanently. I.e., so I could look in a log somewhere and find some command I used 6 months ago, like the one I used to get my printer drivers installed

View 1 Replies View Related

Ubuntu :: Save Copy Of Bash Entries / History?

Feb 16, 2011

Ubuntu :: save copy of bash entries / history?

View 7 Replies View Related

Software :: Bash Command History Log / How To Write It Continuous?

Apr 14, 2011

I've been looking for how to set this up in bash with no luck so far. I can change what file the history log is written to, and how much history is saved. But it only writes the saved part when bash exits. Instead, I'd like to have bash write that file continuously as each command is entered (and maybe also do an fsync(2) to flush it to disk). That way I can see the command I crashed the box with Anyone know the magical incantation for that?

But there appears to be nothing that I can find there, in the man page, or other searches, that suggest it even can do continuous.

View 12 Replies View Related

General :: How To Clear History

Nov 30, 2010

How to clear history in LINUX?

Which command?

And how to remove permissions which is given for a user to be group admin? by this command- gpasswd -A ram sales

Where ram is user sales is group

How to deselect him as admin?

View 7 Replies View Related

General :: How Is Shell History Specific To Each Tty

Apr 4, 2010

How is shell history specific to each tty? I can't see anything in the history files that would indicate which tty a command was performed on, however if I restart and log in on several ttys, the command order and history is preserved on each. How is this accomplished? This goes for zsh and bash equally.Now for some zsh specific questions.I had a saved webpae, which resulted in a file called doku.php.htm, and a directory called doku.php_files - I could only get zsh to expand the directory. It didnt seem to give me the option to cycle nor did it only complete as much as it could with ambiguity, i.e. to doku.php , so what is this behaviour and where can I read about it?

Secondly I would like to know why zsh interactive shells do not expand the PS1 prompt completely. Whenever I open an xterm or such, the prompt is not the normal PS1 prompt. I read through the manuals and config files, and could see nowhere that staed a different prompt should be used depending on the shell type. Why does this happen, and how can I modify this behavior?Regarding modules, if I install the compat-wifi modules which I assume replace the existing ones, how would I uninstall them? Would I just reinstall the normal kernel modules over them?

View 8 Replies View Related

General :: How Do You Clear Reboot History

May 24, 2011

I don't mind a few lines of reboots, but this is getting rather long:

How can I clear (or reduce) the history that comes up when ssh to my host?

View 9 Replies View Related

General :: Find Out PID Of A Command Which Is In History?

Jun 20, 2011

If someone has done something wrong on a shared linux machine. If i want to find out who is that person or ip from where it is been done what are all the possible ways. 1 possibility I thought was to get the PID of the command and get other details from that PID?

View 4 Replies View Related

General :: History On Home Wifi?

Jul 11, 2011

How can I find all Linux history on my home wifi

View 5 Replies View Related

General :: Can Not Use Command 'history' In Fedora13?

Nov 1, 2010

Just as the subject,I didn't find a appropriate answer with google. Is there any command to replace it?

View 5 Replies View Related

Ubuntu :: Deleted Files On USB Drive Not Actually Deleted?

Jun 7, 2010

I searched the forum with various terms and didn't find anything, so my apologies if this is a common and/or newbie problem.It seems that when I have a USB driveplugged in to switch the files around, those that I delete are still taking up space. I first noticed it with a Chinese MP3 player and thought it was the player being crappy. I could still play all the songs that were supposedly gone. Today, I noticed it with a little thumb drive that I've had for years. I plugged it into my husband's computer running winXP, and the files showed up in a weird, unusable form. I was able to delete them for real.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved