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

How can I make a list of my most used commands including commands used including sudo [duplicate]

How can I make a list of my most used commands. I have tried the answer from How can I make a list with most used commands in terminal? but it does not include the names of the commands I used with ...
1
vote
5answers
1k views

bash shell output history file location

Where does the bash shell store the actual terminal session? I want to read the output of commands I used before. All I can find googling is how to store the output of a command. Since output is ...
1
vote
0answers
17 views

How to Show History of Port State/Activity?

Let's say I have an open port on my PC like 6789. I use this port for a special purpose. But, suddenly I found the port 6789 is not listed in netstat -ntlp (port closed). How can I see the history of ...
1
vote
1answer
305 views

How to delete chat history in skype for only one contact in Linux

I'm trying to delete chat history for only one contact in Linux. I've tried sqlite: http://www.sqlite.org/download.html but it removes chat conversation for a while and after restart skype it ...
-1
votes
1answer
86 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
48 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 ...
0
votes
1answer
17 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
13 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
163 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
65 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
37 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
54 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
104 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
44 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
112 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
52 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
96 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
172 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 ...
7
votes
4answers
3k 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 ...
3
votes
2answers
141 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
83 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
127 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
69 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
73 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
264 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 ...
1
vote
0answers
58 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
1k 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 ...
210
votes
10answers
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
8k 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
71 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
250 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
223 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
391 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
245 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
42 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
51 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
162 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
670 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
97 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
183 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 ...
9
votes
2answers
8k 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
67 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
322 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
38 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
169 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
40 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
70 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 ...