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


ADVERTISEMENT

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

Ubuntu :: Save Copy Of Bash Entries / History?

Feb 16, 2011

Ubuntu :: save copy of bash entries / history?

View 7 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

General :: How To Add Entries / How To Delete Entries

Oct 13, 2010

I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.

View 4 Replies View Related

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 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 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 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

Server :: Delete History From Computer?

Mar 10, 2010

I'm using RHEL 5.0 and i want to delete history for n users at a time.i can use history -c from each user login and delete but i want another way.or i want to create a shell script by using which i can do d task at a glance for all users.

View 1 Replies View Related

Networking :: Can't Delete Arp Entries

Jun 23, 2011

So I have some entries like the ones below. I have a system setup to do all the routing/dhcp/dns. This is a private network for education purposes only, and I have no idea how half of these addresses got in the arp table.

shell>arp -n
192.58.128.30 (incomplete) eth0
192.228.79.201 (incomplete) eth0
192.36.148.17 (incomplete) eth0

[Code].....

how to just clear the table. That's all I want. Is that too much to ask? I also noticed in Wireshark that packets are constantly being sent to find the MAC address that these IPs belong too. I really want that to stop happening.

EDIT: I have also tried using ip neighbor. I ran "ip neighbor del 192.58.128.30 dev eth0", and it gave no errors but didn't remove the entry. All the ones without a MAC are also listed as FAILED in ip neighbor.

View 1 Replies View Related

Fedora Security :: Delete Input History?

Oct 18, 2010

What command is used to delete input command history in terminal ?I am afraid my friend will trace what been inpu

View 10 Replies View Related

Ubuntu :: How To Delete Entries From Grub?

Feb 16, 2011

Before Ubuntu I used m8, and the boot options for m8 still shows up in the grub startup screen. I want to get rid of those m8 entries. I have edited grub in the past, and it was just a regular text file, where you could just remove lines or even change listing order.Edit the menu using the command "sudo gedit /boot/grub/menu.lst.No good, there is no such file on my system. After password, That command displays a blank Gedit screen.

View 5 Replies View Related

Debian Multimedia :: Can Firefox Delete History Which Is Old For Some Days

Oct 24, 2010

I want Firefox to delete history after several days. Can I configure it this way?"Remember my browser history for at least..." is not the option which does it, right?

View 11 Replies View Related

Ubuntu :: Unable To Delete Gwibber Message History?

Jun 1, 2010

I thought I would give Gwibber a a try, so I set up my Twitter account with it. Seemed to work just fine. However, when I deleted the Twitter account from Gwibber, the messages I previously downloaded are still in the main window. I've checked for ".gwibber" in the home folder, but there's not one. So, I did a search on the machine for all Gwibber folders, and none had any message history in it.

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

Ubuntu :: Delete Entries From GRUB Loader?

Apr 23, 2010

My laptop is set to dual boot, either Ubuntu 9.10 or Windows Vista. The GRUB loader has multiple entries, starting with Ubuntu, then several instances of Ubuntu recovery mode, before memory test and two entries for Vista, the first of which does not work. How do I delete the unwanted entries? I can press "e" to edit them, but if I do so how do I actually delete them, assuming it is safe to do so.

View 7 Replies View Related

Software :: Delete Skype Chat/call History In Fedora?

May 10, 2010

I am using skype in fedora 9. I am searching how can I delete skype call/chat history. I have searched some .dbb files in /home/<username>/.Skype/<skyID> directory like chatmsg2048.dbb. Can I safely remove these files in order to delete my chat history. Also, I cannot view these .dbb files in gedit. If I can read these files, I can better decide which history I need to delete.

View 3 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

Ubuntu Multimedia :: Delete Chat History On Pidgin And Skype Beta 2.1.0.81

Apr 10, 2011

I'm using Ubuntu 10.10 netbook, and i want to delete my chat history on pidgin and skype beta 2.1.0.81 but i couldn't find how to delete it.

View 9 Replies View Related

Fedora :: Move OR Delete The First 3 Entries In Desktop Right Click In Gnome

Apr 15, 2010

OS: fed 12
WM: gnome

I would like to remove OR move down the "create folder, launcher etc" so the first button can be Open Terminal. I have used both NACT and nautilus-actions to get the Open Terminal on the menu - but I would like it to be on the top (old habit).

View 1 Replies View Related

General :: Ubuntu 10.04 Recurring Low Disk Space?

Sep 20, 2010

I am running Ubuntu 10.04 on one 80GiB disk partitioned as two equal. The second one is mounted as my home folder. The reasons for the partitioning are historic and I don't think they're relevant here.

My problem is that Ubuntu frequently reports 'Low Disk Space'. The initial solution was to turn off backups and that seemed to ease the problem. Now it has started happening again, but backups are still turned off. I can't see anything unusual in the tmp directory - or anywhere come to that - but I don't really know where to look.

I have searched for known leaky problems but haven't found anything that seems to fit. I don't store images, videos or music.

View 2 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 :: Make Shell Script To Delete Selected Entries Of A Log File?

Jun 26, 2010

I have 2 external hdd in wich I have all my files.... yesterday, I have copied all the files from hdd1 to hdd2 and I want to eliminate duplicates so I used FSLint to find them, now, I have a txt file that looks like this code...

now I want to make a shell script to delete all the files/entries (read from the log file) that begin with 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







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