Ubuntu :: Save Copy Of Bash Entries / History?
Feb 16, 2011Ubuntu :: save copy of bash entries / history?
View 7 RepliesUbuntu :: save copy of bash entries / history?
View 7 RepliesIs 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]...
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 Relatedwhat command do i use to copy .bash_history to /tmp location?
View 9 Replies View RelatedIs 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 Relatedthe terminal history does not save commands starting with "./"
View 2 Replies View Relatedmy whole system crashed due to file system failure so i have to reinstall it, but i would like to save my pidgin history and settings if possible. can anybody tell me, where i can find that. i can access my files trough a live cd via terminal. in which file/directory are the settings and the history stored?? i was looking thorugh the forum but i couldn find this information anywhere.
View 2 Replies View Relatedhow to save command out put to another file. Ex: #ps -ef that particular cmd output i need to save another file. is it possible And how to save command history in Linux.
View 1 Replies View Relatedless doesn't save command history, i.e. file .lesshst isn't created. If I create it manually, nothing writes to it too.OS AIX 5.3 I think linux users can have the same issue, hardly this issue depends on OS.
View 9 Replies View RelatedI gave Kubuntu (Live CD) a test drive that turned out to be longer than planned... How do I export my Konquerer history?
View 2 Replies View RelatedI use Ubuntu 9.04 on my laptop.Is there any way to get history of ubuntu nautilus like copy, remove something to usb drive etc.
View 7 Replies View Relatedterminal 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]....
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]....
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 RelatedI 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?
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 RelatedI'm looking for a way to copy and archive 10 years worth of message history from a Yahoo Group. With some changes in the yahoo group format coming in the future my group has concerns. I can copy a page at a time but it is not practical. how to go about it. I'm nearly clueless and am told that it can't be done.
View 9 Replies View RelatedIs there a way to define an unlimited history in Bash ?
View 3 Replies View RelatedPossible 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 RelatedHow 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 Relatedi 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.
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.
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 RelatedFirefox "preferences" has an option which say, "keep my history for at least --- days".This does not make sense. If I enter 10 days, it will keep my history for 10 days or 1000 days. If I ener 100 days, it will keep my history for 100 days or 1000 days.ame thing!!Shouldn't it say, "keep my history for no longer than --- days"?I just set mine to 14 days and I still have a month of history.
View 1 Replies View Relatedi want to delete some say 10 previous commands in bash shell!
View 3 Replies View RelatedI 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 RelatedI want to copy location of every .avi , .jpg file present in a folder or in subfolder present in a direcotry and save in a textfile how to doex : /home/username/Desktop/bookofeli/video/book.aviit should give full locaiton of path how to do
View 2 Replies View RelatedI recently installed Jaunty in my departmental machine which is having 70 GB harddisk and 512 MB RAM. Before installing I partitioned the Hard disk by using Gparted of Live CD into Four compartments namely
1. Primary partition of 30 GB of file type ext3
2. Extended partition of 39 GB which I divided again into two logical Partition of 20 GB and 19 GB. Labelled it as D and E
3. 1 GB of swap partition
I installed the Jaunty in primary partition, gave the mount point as /The problem is I am not able to copy or save file in the extended partition namely D and E
if I can grab a copy of the Lucid packages that my laptop's downloading and dump them into a directory on the desktop computer, then upgrade the desktop in a way it makes use of the packages it wants and that I have to hand already.
View 2 Replies View RelatedI have been messing with this lately, and I cant figure out how to save it. This gives me what I want:
Code:
export PS1='u@desktop-@:w '
I tried saving it here:
Code:
/etc/profile
and here:
/etc/bash.bashrc The files save just fine, but it does not change my bash promt. What am I doing wrong??