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
1answer
36 views

Putty SSH client command history? [duplicate]

I connect to my server via Putty SSH client. With the key ↑ I see previous entered commands, one by one. I just wondering is there a some command, which show all previous entered commands out of a ...
0
votes
0answers
28 views

No more history in dash. I want it back

I don't see the applications I used already in the dashboard. I went in settings -> privacy, and the history use was already set. I unset it and set it again (who knows). I even rebooted, but nothing ...
-2
votes
0answers
27 views

In History command results i want when the command is used i.e., date and time,without using timestamping.How i get that? [duplicate]

In terminal, I search for history it shows last 1000+ used commands. But along with that I want to add Date and Time when it is used. Is it possible to add modifications to history command Other than ...
0
votes
1answer
13 views

Same commands execute when restart terminal

So, some time ago, I copied csv data from a webpage into terminal to save it to a csv file, like echo "field1,field2,field3,...,fieldn, with about 20 lines of text. I did this because I couldn't ...
1
vote
0answers
11 views

Record date when command was executed in the terminal? [duplicate]

bash_history lists only the previous commands executed. Is it possible to record the times ie. date when they were executed?
0
votes
1answer
84 views

How to run an anonymous terminal session?

This question by Paranoid Panda asks about incognito terminal use. This means history is not recorded in bash_history; so you can't access commands that were entered during that session. However this ...
0
votes
1answer
33 views

Lost firefox tabs due to crash

I use the Save Session version 1.3.1.6.1 plugin in firefox to save my current sessions. I had kept 3 windows full of tabs for all almost a year when yesterday my firefox crashed. Now I can't find any ...
1
vote
1answer
30 views

How to record all modifications to directories, subdirectories and files in one session?

How can I record all the modifications to directories, subdirectories and files made during one session (ie. during login time)? For example, listing all the files/folders that were modified, and ...
-2
votes
3answers
46 views

Any way to see if a long running process bash command succeeded? [closed]

I have a long running process that was parsing text and my laptop died at some point because it was unplugged. I really don't want to unnecessarily run the process again because it takes over a day, ...
1
vote
1answer
79 views

How to remove command-line history from a specific time period?

How can I remove command-line history over a specific time period? Is it possible do so with only one command?
0
votes
0answers
21 views

Skype chat progress is not showing whole history when started

When I start Skype so it always shows up a window that is totally empty when I open a contact I have already written with. I always have to change the setting to From beginning so that I can see the ...
0
votes
0answers
14 views

ubuntu 14.04 after reboot I lost last history of commands [duplicate]

I have Ubuntu 14.04 and I observed that whenever I reboot or had to force reboot (power off) the machine, I lose the history of commands. Normally I lose most or all previous session commands. This ...
1
vote
1answer
107 views

When I paste a command instead of typing it why does it not get added to history

If I type in a command it is preserved in history, but If I copy and paste a command from other place it is not preserved in history which is annoying if I have to run it again. I think this happens ...
1
vote
2answers
28 views

Generate a log of all the installs on a system (whether apt-get/yum/pip/npm/…)

Is there a command (or specific syntax for history command) that generates (to screen or file) a log of all the installs on a system (whether they were through apt-get/yum/pip/npm/...). If possible, ...
2
votes
2answers
70 views

Get history of top 10 commands used [duplicate]

Is there any way to find out top 10 most used commands in history? Here top 10 means commands which I have used most of the time i.e. the commands whose used count is more than others.
3
votes
0answers
87 views

missing .bash_history [closed]

I cant find .bash_history file in my home directory. I do: echo $HISTFILE /home/myname/.bash_history But if I try to list the file with ls, I get: $ ls -l ~/.bash_history ls: cannot access ...
5
votes
4answers
1k views

How to view history of apt-get install?

How can I view the history of apt-get install commands that I have manually executed? It seems to me that all methods available show everything that has been installed right from the start of the ...
2
votes
2answers
91 views

How to prevent commands being removed from history?

I have noticed that when I go up through my commands using the arrow keys, UP and DOWN, that if I then edit a command, it edits it in history, and I can even remove a command like that, however I do ...
4
votes
1answer
62 views

What does '*' mean in the output to 'history' command?

I was seeing my history when I found a line with a * whereas, in general, the history has an output without any * I noticed this for the first time. When does this * appear and why? EDIT: ...
0
votes
2answers
92 views

history erase shell script not working

I am creating shelll script that is erase history of commands in the terminal. But the script is not erase the history of commands in the terminal. I follow below procedure 1. My script contains ...
2
votes
1answer
52 views

Pasted commands do not appear in history

when I use copy and paste to run a command, and later I want to run the command again it doesn't appear in history. Sometimes if I paste and then change some of the arguments the command does appear ...
1
vote
3answers
49 views

History command in graphic interface of OS

Does Ubuntu store a history of command executed in the graphic interface (not in a shell session)? For example if, by mouse, I click on System Settings, then click on Network, do these steps ...
3
votes
1answer
93 views

How to know the time of execution of previous commands [duplicate]

I know that using the history command I can view my past commands, but: Is there a way to view the date and time of the execution of those commands? Or is that kind of information not saved? And ...
0
votes
0answers
44 views

User account history showing incorrectly

I have found that in System Settings > User Accounts that if you select an account and then select the button called History (which is meant to show the login history for that account), it will ...
3
votes
1answer
414 views

How to show all files created on a specific date

On 16/05/2015 at 17:18 I visited a malicious website. And I suspect a drive-by-download, so I want to check my machine to see since that time in order of creation which files have been created or ...
204
votes
9answers
12k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
4
votes
3answers
2k views

View history of commands ran in terminal

Is there a way to save all my typed terminal commands and view it like history in a log book?
11
votes
2answers
1k views

Who named Ubuntu? [closed]

It is said Linux was named by Linus Torvalds who had created it. And is reported Linux means 'Linux Is Not UniX.' It is wondered who and why named Ubuntu to publish it by book. Would you explain?
3
votes
1answer
64 views

What mean numbers in output of history

Output of history command looks like this: 1975 mkdir adrnln/work_dump 1976 ls 1977 code What does numbers on the left side mean? Is it true that commands entered for example on Monday will be ...
1
vote
5answers
231 views

Creating command history list

Is there a way to display a list comprised of the last n terminal commands made by a particular user ?
6
votes
3answers
193 views

Blank line in my bash.history?

I was taking a look at my .bash_history, and I found a blank line. I thought that I could have pressed "enter" while I was taking a look in the file. Is that normal? Or maybe I really pressed enter ...
0
votes
2answers
236 views

How can I use history command in a bash script?

I try to use history command in a bash script but it didn't work. The code of the bash file: #!/bin/bash # Copy history to file history #cd /media/saleel_almajd/Study/linux/my_scripts/ echo ...
0
votes
1answer
200 views

Get Activity Log in Linux

I don't know what was the size of files and in which folder they were put.but my little brother copied some files from one folder to another one.I am unable to get those files back.Is there any way so ...
1
vote
1answer
41 views

How to enter part of a command automatically, after another command executed?

I want to create a function for grep-ing my command line history by history | grep {keyword}. And after seeing the list and choosing the command by line number ,I want to execute it by !{line_number} ...
2
votes
1answer
49 views

Entries in history

I usually include the password when I log in to MySQL. How do I exclude mysql -u root -pPassword being picked up and stored by history?
3
votes
1answer
155 views

How to quickly check the value of bash variables, aliases and history commands from terminal?

How do you expand in place: bash aliases environment variables history commands to edit them and check they are correct? For example, I have some aliases I use for flashing different devices and ...
1
vote
2answers
547 views

Reset History inside a bash script [duplicate]

I want to make a bash script that clears the history i.e. works similarly as the command history -c So I started with the following code:- #!/bin/bash history #displaying history history -c ...
2
votes
1answer
87 views

I have Privacy: Record activity ON but how to view log and all the stuff? [duplicate]

Where can I find the recorded data and screen snaps and etc things ? I had tried to find them within : ~/.local/share/zeitgeist directory but there are the following files available and i don't ...
2
votes
1answer
166 views

Incremental history searching

I found this very useful tip in UsingTheTerminal to use the arrow keys to search through the command history: "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": forward-char ...
8
votes
2answers
6k views

Bash history not saved after closing terminal

I recently replaced my Ubuntu 14.04 installation with Ubuntu Gnome (which comes with Gnome DE). But I noticed that bash history is not saved once the terminal session is closed. Once I close a ...
0
votes
2answers
64 views

Which page opened a tab in firefox?

While searching on well known and reliable pages, I suddenly had a new tab in firefox open with offending content. I closed the page, but it is still visible in the history of firefox. I want to ...
0
votes
3answers
293 views

key-shortcut accessible command-history (in gnome-terminal) for irssi sessions needed!

I use gnome-terminal in combination with irssi and I am wondering if there's anything like .bash_history logfile for irssi, that can be used/implemented/set up, that enables one to retrieve previously ...
1
vote
1answer
36 views

where does the discrepancy between \# in PS1 and n in !n come from?

Something has been gnawing at me for a while now and I can't seem to find a relevant answer either in man pages or using your 'Don't be evil' search engine. My .bashrc has the following: shopt -s ...
0
votes
1answer
119 views

How do I enable automatic history expansion for commands using 'magic space'?

I read on a blog somewhere about the possibility to use automatic history expansion before actually executing a command or even pressing the enter key in the command line. It involves the ...
-1
votes
2answers
1k views

BleachBit: How to Completely Clear URL History in Firefox?

14.04 / Firefox 29.0 I've been using Bleachbit to clear usage/file history, and for the most part it works great. However, it doesn't seem to clear the website hostnames out of the URL, at all. ...
1
vote
0answers
39 views

How to find the directory on which a particular command is executed? [duplicate]

I already installed nautilus-open-terminal package. So i can openup terminal from any directory. Like that i opened a terminal from a directory(i forgot it's path) and executed apt-get download vlc ...
0
votes
1answer
60 views

how to see what was updated in last update

Recently I downloaded automatic updates which Ubuntu offered me automatically (Classic "Confirm, confirm, OK... done" without actually reading what is being installed) I feel like that as result of ...
13
votes
4answers
672 views

Run last command with all the letters transformed to lowercase

Many times I have run a command with all the letters in uppercase (maybe because CapsLock was on), and I pressed Enter before realising this. How can I run the last command with all the letters ...
1
vote
1answer
443 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
85 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 ...