The history command can be used to retrieve the the commands you have previously typed in a shell.

learn more… | top users | synonyms

0
votes
0answers
13 views

Show the history of removable devices in Linux [duplicate]

I just wanted to see the history of all the removable devices (Pendrives,etc) if any plugged into my system. Just like the history command which tells the history of commands executed on terminal, is ...
1
vote
1answer
33 views

List all manually installed packages similar to history.log file

I searched the whole internet for this but did not find any satisfactory answer for this question. aptitude search ‘~i !~M’ | less does not show the manually installed packages. On my system it ...
1
vote
1answer
30 views

Cannot seem to get bash history along with others working

This is very similar to all the other questions out there but at the same time not. I am running Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-59-generic x86_64) to be precise. I successfully setup a new user ...
3
votes
0answers
41 views

Bash History Search (CTRL+R) in Ubuntu Suggestions?

Is there an extension of some kind which ties Bash's history search (via CTRL+R) into the Ubuntu search suggestions generated when searching via the Windows key (in GNOME3)? Something that would just ...
7
votes
2answers
199 views

Get bash history to remember only the commands run with space prefixed!

The commands executed in the terminal prefixed with blank space(s) are not recorded in the command history file. But is there a way to get the reverse i.e. the history should only record those which ...
0
votes
3answers
54 views

How to clear history on logout

I tried adding history -c to ~/.bash_logout but seems not working. Add: I'm having success by adding these lines into my ~/.bashrc (referred from here) unset HISTFILE export LESSHISTFILE="-" I ...
1
vote
1answer
58 views

How to clear recent history in Xubuntu 12.04

First, I know how to do it in Ubuntu. I could use Activity Log Manager to clear recent history. However, it does not work on Xubuntu 12.04. The "recently used" history is always there after I tried ...
1
vote
0answers
71 views

Display list of most used commands [duplicate]

The command history will display the list of commands I used before. Now: How could I know the most used commands? Also how to count number of times I used each command? For example: If I use ...
1
vote
1answer
165 views

Save the terminal history to a file for print

My Ubuntu headless server is about to lose both hard drives(raid1). I already saved the most important stuff. Now I'm sitting in front of a Mac OS X client with the terminal open (ssh). I need to ...
0
votes
2answers
93 views

Logging of commands executed in Bash

Sometime back, we had a requirement to log commands run on the terminal in the Bash shell. This was solved by means of a startup script with essentially the following contents: #!/bin/bash ...
3
votes
2answers
80 views

There seems to be a difference between .bash_history and what up arrow displays, where does the up arrow get it's data?

I seem to have discovered that the ~/.bash_history file doesn't contain what is displayed when you use the up arrow. I found this by doing a command like so $smbclient -L 10.2.10.240 -umyuser ...
2
votes
0answers
35 views

How to delete list of played movies in Movie Player [duplicate]

Movie Player lists names of last few movies played. How to delete that list ? Going forward, I'll use VLC. But I'd like to clear that viewed movie history list.
2
votes
3answers
107 views

History command showing the directory and the date

Is there a way to have in the .bash_history file, listed: the directory where the command has been typed, the date, and the command ?
0
votes
0answers
23 views

Need to determine the bootup history of ubuntu

I need to determine all the times ubuntu has been booted up and a log of all the applications that were used. Something equivalent to history on browsers. How do I do it. Any help will be highly ...
1
vote
3answers
205 views

How can I automatically rotate/archive my bash history logs?

I know that Bash has both HISTSIZE and HISTFILESIZE variables that control how long history is saved for, and how much of it is saved. I would like to keep an archive of my history. However, if I ...
0
votes
1answer
193 views

get list of all commands run in past with sudo apt-get install in terminal

As per command history in Ubuntu terminal we can see all previous command we run on system. I want to know how can we get all previous command which starts with some words/characters. Example : i ...
1
vote
2answers
130 views

Prevent user from executing history -c command in shell

Is it possible to prevent specific user from executing history -c command in shell.
11
votes
3answers
2k views

How to view the `.bash_history` file via command line?

I want to view the contents of my .bash_history file but don't know how to get there via the command line.
1
vote
2answers
168 views

Where does the software-center store its history?

The Ubuntu software center is able to display a detailed history of packages installed /updated/removed according to date. Where does it get this info from? (/var/log/dpkg.log is maintained only ...
1
vote
1answer
487 views

How do I clear Software Center History?

I have old software center history from way back in June and I would like to clear it all but I have tried sudo rm -rf /var/log/apt/history.log /var/log/dpkg.log ut it did not work
4
votes
3answers
3k views

How to delete selected results from history command?

history command shows all the results but we can filter to get particular command using history | grep searchingCommand. It is really helpful. But the problem is it shows those commands also which ...
2
votes
4answers
258 views

Select commands from bash history

Pressing the up button is tedious and I might miss the command I was looking for. So when typing history at the terminal gives me all the commands I have entered before, indexed to a number. Is there ...
1
vote
0answers
33 views

How can I increase the viewing history (recent documents) in Okular?

I tried looking for an entry/number in ~/.kde/share/config/okularrc but there was nothing to edit there as to allow me to increase the number of saved addresses
0
votes
1answer
183 views

Bash history for root?

After installing 'ubuntu-desktop' on 12.04-LTS-server, the arrow keys work correctly for history navigation when the user is not root. However, for the root user, the arrow keys (for example, the ...
0
votes
1answer
36 views

Getting log file of system ON & OFF history

How i can get the log-file of Ubuntu 12 Shutdown, Restart and Start history , I tried with "last UserNanme" in terminal but not getting the data i want, Please help me to find the log file .Thanks in ...
1
vote
0answers
20 views

Files which tell that someone has accessed your computer [duplicate]

I know /var/log/auth.log shows who has been using sudo commands and /home/myusername/.bash_history shows command line commands. I would like to know if there are any more files similar to these 2 ...
13
votes
4answers
392 views

How to get shared bashed history among different tabs

I used the answer in http://unix.stackexchange.com/a/1292/41729 to enable real-time shared history among separate bash terminals. As explained in the answer above, this is achieved by adding: # avoid ...
1
vote
1answer
404 views

Gedit 3.6.1, how to increase the number of recent files from its default of 5?

Ubuntu 12.10, gedit 3.6.1 This won't work: gconftool-2 --type int --set /apps/gedit- /preferences/ui/recents/max_recents 30 Modifying this file as root won't work either: cat ...
1
vote
2answers
269 views

How to clean gedit's and other editor's find&replace history?

I have started working on a new project using gedit on ubuntu 12.04. The problem i am facing now is that, all previously searched terms are still there when i click on the drop down arrow in search ...
3
votes
3answers
2k views

Where are ALL ubuntu logs/terminal history stored

In what folders are the logs and key histories stored so that I may make a script to purge them. Is there a specific folder for the hibernation partition or a file by which it keeps the RAM data on ...
0
votes
1answer
140 views

How can I enable history completion by program in terminator as guake has it?

In guake I can type ls UP-ARROW and it will show ls /home/blah for example. In terminator using up arrow after typing ls just brings me to the command I entered prior. Is there any way to enable this ...
2
votes
2answers
571 views

No duplicated lines in bash history [duplicate]

Supposedly, adding export HISTCONTROL=ignoreboth to .bashrc would do the trick, but what I see in practice is there still exists duplicated lines in my .bash_history file. You can see my .bashrc ...
0
votes
0answers
32 views

Banshee remember last played and search history

Is it possible to set Banshee so that when I open it, it will resume everything I was doing last time? Cause right now, when I open it it just plays my whole music library, and doesn't remember what I ...
6
votes
2answers
94 views

Using last part of command for next command

When using the command I know a friend of mine who used to re-use last part of previous command. He unfortunately moved far away and I can't get hold of him. First: cp -r folder ~/folder Then he ...
3
votes
1answer
3k views

How to save terminal history manually?

It's my understanding that the history file is updated when the terminal exits. But sometimes my computer crashes out, and the terminal doesn't exit cleanly, and then I lose those commands from my ...
0
votes
4answers
938 views

How do I prevent suggestions in the location bar in Firefox with history empty?

You know what I mean, when you type a letter in the internet browsers address bar it shows suggestions, like when you type y it suggests youtube.com. I believe this has to do with the history of ...
3
votes
1answer
262 views

Clear Linux file system after shutdown / start

I have very specific task. I need to clear the desktop, downloads, documents and so on after every shutdown or finish. For example, if anyone downloads something using Google Chrome, he will work ...
6
votes
2answers
3k views

bash doesn't keep history

I run Ubuntu 12.04, and for some reason bash does not keep my command history. the ~/.bash_history file contains only 3 commands that I typed a few months ago. How can I fix this? EDIT: here's the ...
0
votes
2answers
273 views

History list without timestamp and unique the results

Using bash, I save my history with the timestamp. How do print the history omitting the timestamp? alias h=history alias g=grep -i To find lines that I used for heroku, I type: > h | g ...
36
votes
6answers
72k views

How to clear bash history completely?

I want to clear all before command from history of my server. I use history -c it seems all things are cleared but when I ssh to the server,all commands are still there. How can I clear them ...
0
votes
2answers
171 views

How to delete the history of a specific user in Empathy?

In Empathy, when you go to history, you have the option to delete all history and not for only a specific user. How to delete the history of a specific user in Empathy people nearby account with ...
4
votes
1answer
625 views

Increase or View all Stored History in Gedit

I would like to be able to see the last ~200 files opened in Gedit. I was able to increase the number it shows to 40 using this command: gconftool-2 --type int --set ...
3
votes
2answers
6k views

How do I check if someone accessed my computer?

I need to check the list of files accessed in my computer (ex: yesterday on particular time). Is it possible? Or I need to check whether anybody accessed my computer (when I left it unlocked) or ...
6
votes
1answer
1k views

Is there a centralized history file for all the commands run from various terminals?

I am aware that every terminal has it's separate history,which can be viewed by the history command. Commands issued on suppose terminal tty1 will be shown in the history of tty1 only and not in the ...
1
vote
1answer
232 views

Find most recent scp files

A few weeks ago I scp'd some files to my computer from a friend's computer for future use. Now I want to use those files, but I can't remember where I put them and I have looked all over. Is there ...
1
vote
1answer
74 views

Graphical terminal misinterpreting input

I've been having this weird problem with typing commands into gnome-terminal. If the command takes up multiple screen lines and I use any backspaces and the stars are in proper alignment the command ...
2
votes
2answers
1k views

Install history command package

I have Ubuntu 10.04.4 LTS running on a proxmox OpenVZ container. I imagine it does not come with history because the up arrow on the command line gives me ^[[A plus... $ history -sh: history: not ...
7
votes
4answers
8k views

How to find history of shell commands since machine was created?

I created an Ubuntu virtualbox machine a couple weeks ago and have been working on projects off and on in it since then. Now I would like to find the syntax of some commands I typed in the terminal ...
12
votes
8answers
1k views

Ubuntu Philosophy Question [closed]

I was just switching from Windows to Ubuntu and I started to read this. And there were quite a few things I did not understand. One was: "OpenOffice decided not to have a learning curve" ...
6
votes
2answers
949 views

How do I disable the command line history in the dash?

Using Unity, how to clear and disable the RUN (ALT+F2) history? Not the dash history, not the search history --- the ALT+F2 "run" history. The Privacy Settings Applet of System Settings doesn't seem ...