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
ADVERTISEMENT
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
May 29, 2010
Sometimes I don't want commands to be added to my history. In bash it wasCode:unset HISTFILE
You would run it after a few commands and it would clear them all.I can't find out how to do it with ZSH.
View 1 Replies
View Related
Jun 5, 2010
I just started using the z shell. i have one problem, what command clears z shells history? I know how to clear the .histfile: echo "" > .histfile, but when i press the up arrow key the last command is still there.
View 1 Replies
View Related
Jun 13, 2010
And if it's possible, how do I clear it?
View 1 Replies
View Related
Mar 7, 2010
How would I clear my commandline history at logon/logoff/startup time? I tried this : editing my /etc/rc.d/rc.local file like this I know this is for system startup
Code:
#!/bin/sh
# /etc/rc.d/rc.local: Local system initialization script.
# Put any local startup commands in here.
Also, if you have anything that needs to be run at shutdown time you can make an /etc/rc.d/rc.local_shutdown script and put those commands in there.
#clear user history ~/.bash_history
echo "" > ~/.bash_history
#clear root history /root/.bash_history
echo "" > /root/.bash_history
But when I reboot, the history still remains.
View 2 Replies
View Related
Apr 28, 2011
I have installed Squeeze with the Gnome desktop and the Totem Movie Player Application. It seems to work ok but it seem there is no way to delete the history. I found one post on the subject with no reply and have read the bug reports and the problem was not mentioned. I tried to find the file containing the history without success.
View 1 Replies
View Related
May 22, 2011
i am using natty 11.04. can you please guide me how to clear recent history in dash under search files folders?also tell me how to customize dash application menu etc...
View 1 Replies
View Related
Dec 15, 2010
I used to use CCleaner so I could keep specific cookies from being deleted while I deleted all others. Is there any way I can do this with Ubuntu? Firefox doesn't seem to allow it other than manual deletion which is not as fast an automated as CCleaner made the task.
View 1 Replies
View Related
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
Nov 18, 2009
I am having a Oracle server installed on Linux server. I want to clear the buffers after a certain time interval. I use the following command for the same.
echo 3 > /proc/sys/vm/drop_caches
Can I have a script which will execute the above script after certain time interval OR a script which will execute the above command when certain memory size is reached.
View 1 Replies
View Related
Apr 16, 2011
I'm running OS X and it appears that after SSHing to several machines, using identity files, my ssh-agent builds up a lot of identity / keys and then offers too many sometimes to a remote machines, causing them to kick me off before connecting.
Received disconnect from 10.12.10.16: 2: Too many authentication failures for cwd
It's pretty obvious what's happening, and this page talks about it in more detail:
SSH servers only allow you to attempt to authenticate a certain number of times. Each failed password attempt, each failed pubkey/identity that is offered, etc, take up one of these attempts. If you have a lot of SSH keys in your agent, you may find that an SSH server may kick you out before allowing you to attempt password authentication at all. If this is the case, there are a few different workarounds.
Rebooting clears the agent and then everything works OK again. I can also add this line to my .ssh/config file to force it to use password authentication:
PreferredAuthentications keyboard-interactive,password
Anyhow, I saw the note on the page I referenced talking about deleting keys from the agent, but I'm not sure if that applies on a mac since they appear to be cleared after reboot anyhow. So, my question is, is there a simple way to clear out all keys in the ssh-agent (the same thing that happens at reboot)?
View 1 Replies
View Related
Apr 28, 2011
I have the following bash script:
#do some time consuming task here read -p "Give me some input: " input
Now as you might've guessed, if users press some random keys during the "time consuming task," they're read into input as well. how do I clear stdin (or at least ignore it) before I issue the read command?
View 1 Replies
View Related
Jan 11, 2010
I recently became co-owner of a server, however upon trying to ssh it became apparent the root admin gave me the wrong password by mistake;
After trying several times with the wrong pasword thinking I might have mistyped I have now blacklisted myself, huzzah.
How can I reset or clear the blacklist?
View 2 Replies
View Related
Apr 12, 2011
My system is old. Not debian.How do I clear out the mqueue directory? I don't want to delete it....just clear it out of the email that is clogging up my var partition. This old command doesn't seem to work anymore:find /var/spool/mqueue -exec rm'{}' ;Anybody know of the command to clear my mqueue.
View 5 Replies
View Related
Feb 11, 2010
I am using ubuntu and gnome-do and have in my gnome-do some bad shortcuts ( they even have a grey X icon ) that i cant figure out how to delete from the list. I thought gnome do has some cache but its been a while and they are still there :(
how to clear them from the list ?
Update: I deleted the ~/local/share/gnome-do folder and still no success
View 3 Replies
View Related
Jun 17, 2010
What is the Linux command to clear IP address of an interface without bringing it down and/or restarting network services. Seems strange ifconfig is able to change IP address but has no option to clear it, or am I wrong?
EDIT:As simple as ifconfig eth0 0.0.0.0. They should have put it in the man
View 3 Replies
View Related
Jun 26, 2011
i am dragged myself from windows to mint 10 julia..while downloading the screenshots is like <http://www.linuxmint.com/pictures/screenshots/julia/menu.png> but after installation i got only menu like the basic menulike in ubuntu.am new to minti installed inside windows.am i done anything wrong with installation
View 3 Replies
View Related
Mar 13, 2011
My var partition is full. The main culprit is NOW the mail file. What is the command to empty the mail files?The mqueue and clientmqueue files are now low on usage but the mail file is responsible for filling up the var partition.
View 1 Replies
View Related
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
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
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
View Related
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
Feb 10, 2011
what command do i use to copy .bash_history to /tmp location?
View 9 Replies
View Related
Jul 11, 2011
How can I find all Linux history on my home wifi
View 5 Replies
View Related
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
Aug 4, 2011
In a performance test, I want to bypass the influence of cache of linux system (including page cache/inode cache and so on). I have tried O_DIRECT flag, but it's turned out that direct I/O is still "enjoy" the effect of some cache.Is there a thorough way to close the effect of system cache?
View 2 Replies
View Related
Aug 30, 2011
I'm looking for something identical to what command-k does in a terminal window on a Mac.
clear / ^L does not work.
View 1 Replies
View Related
Jan 21, 2010
I am unable to use clear or cls command on bash shell. I have recently installed Cygwin and am using that for practicing unix commands.
I see that I can use Ctrl + L to clear the screen. I created an alias in my .bashrc to do the same as
alias cls='^L'
This is how i defined other aliases e.g.
And they work. Hence I assume cls will work too but this is what I get when I try to give cls on command prompt. Am i missing something? Is there a way to do this?
Then someone suggested, You cannot alias keystrokes to commands or vice versa. You could just alias cls to an echo command: echo -en "x0c"
And I added the following to .bashrc,
Sourced the .bashrc file. No errors but cls still does not clear the screen. Infact when I typed the echo -en "x0c on command prompt as well, nothing happened. What does this command do?
View 3 Replies
View Related
Jan 6, 2011
I have a headless server running Centos and I often login in remotely to administer it. I have passwordless login and sometimes run commands remotely via ssh from a client machine. I've tried to shut the server remotely but have come across a small problem. Here is the output of the command I use to shutdown :Code:unclec@linux-desktop $ ssh centos 'sudo /sbin/shutdown -h now 'PASSWORD : 123ABCAs passwordless login is set up I do not need to enter a password to ssh BUT as I am running sudo on the server I am asked to enter my centos unclec password and this is shown in clear text on my local machine terminal. Is there a way to prevent this or should I edit the sudoers file on centos so it does not ask me to enter the password when "sudoing" ?
View 1 Replies
View Related