Tag Info

Hot answers tagged

28

When was the machine turned on: uptime Example from my notebook: 20:06:33 up 1:50, 2 users, load average: 0.03, 0.04, 0.05 That is current time, uptime, amount of users and the load average. What programs run: Command line ps -ef|more GUI - System monitor (dash, system monitor): When the computer was resumed or sleep last what ...


23

Put the following lines in your ~/.inputrc: ## arrow up "\e[A":history-search-backward ## arrow down "\e[B":history-search-forward Lines starting with # are comments. I always forget what is backward and what forward. Experiment with it. Maybe you have to switch backward and forward. A bit background explanation: Bash is using readline to handle the ...


22

"OpenOffice decided not to have a learning curve" The OpenOffice.org and LibreOffice office suites have retained a traditional interface that most users (of them or any other office suite) are likely to find familiar and pretty easy to use, without having to learn it or get used to it first. In contrast, some other office suites, including newer ...


15

From the bash man page: HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to ...


13

~/.bash_history holds the history. To clear the bash history completely on the server. You can open terminal and type cat /dev/null > ~/.bash_history Other alternative way is to link ~/.bash_history to /dev/null On my Ubuntu 12.10 box, The history comes back when I login back. I guess because the history entries has a copy in the memory and it will ...


11

In the .zshrc file, the following values accomplish this: To save every command before it is executed (this is different from bash's history -a solution): setopt inc_append_history To retrieve the history file everytime history is called upon. setopt share_history Related for bash: Is it possible to make writing to .bash_history immediate?


10

Recent Document history for many Gnome 2 based applications are held in a file in your home folder called .local/share/recently-used.xbel Either use the Launcher "Home Folder" - select the menu option "View - Show Hidden Files" and navigate to the .local/share folder and delete the file "recently-used.xbel" Alternatively from the command line rm ...


10

It means that OpenOffice decided not to move away from what is familiar; if you are familiar with the Microsoft Office suite, you should not need to learn anything new with OpenOffice. To be fair, there is a learning curve with OpenOffice but it isn't very steep (i.e. it's not difficult). It means that whatever problems existed with web pages in 1995, ...


8

It may or may not be possible to get all commands. It depends how many commands you executed and how the history limit was set. However you can see the history list are stored here /home/<YOUR_USERNAME>/.bash_history Related question (for handling multiple shell history): Is it possible to make writing to .bash_history immediate?


7

Found something here: Cuberick: Update Bash History in Realtime It says to put those commands in the .bashrc config: shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND" The first command changes the .history file mode to append. And the second configures the history -a command to be run at each shell prompt. The -a immediately writes the ...


7

All actions with apt (apt-get) are logged. These files are available in /var/log/apt/. To view the most recent history log, execute: less /var/log/apt/history.log These logs gets rotated (every month I guess), old files will be suffixed with a number and compressed. So to view the next history log, use: zless /var/log/apt/history.log.1.gz To view the ...


7

The answer to this lies in sshd.conf and sshd_config (server) and ssh_config (client). Depending on the log level it logs to /var/log/syslog (default) and/or /var/log/auth.log (loglevel 'verbose' contains ssh login attempts). If present /var/log/secure also contains an access log. You will need root/sudo access to edit any of these files: they will be ...


7

The variable $_ is used to substitute the most recent parameter. So, in the example you mentioned, you'd do something like: cp -r folder ~/folder cd $_ cd $_ will change directory to the most recent parameter i.e. ~/folder. For more such variables, have a look at http://stackoverflow.com/a/5163260/1626345.


6

Try putting this into your .bashrc: shopt -s histappend # append to history, don't overwrite it export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" Credit here: http://stackoverflow.com/questions/103944/real-time-history-export-amongst-bash-terminal-windows/3055135 history -c clears the history of the running ...


5

If the history file is ~/desktop/unity/runner/history, you may consider link it to /dev/null. that is, in a terminal $ cd ~ $ rm ~/desktop/unity/runner/history $ ln -s /dev/null ~/desktop/unity/runner/history then logout and login again.


5

If you want to permanently remove the recent file list from totem, edit /usr/share/totem/totem.ui as root and change to following line: <separator name="recent-separator"/> <placeholder name="recent-placeholder"/> into <!--<separator name="recent-separator"/> <placeholder name="recent-placeholder"/>--> If you want to ...


5

The commands are not visible because Bash saves history to the .bash_history file only after the shell quits, and this happens very rarely with Guake. There is a simple workaround to make Bash append the history (instead of overwriting the file) after every command shopt -s histappend PROMPT_COMMAND="history -a;$PROMPT_COMMAND"


5

You need to install Activity Journal for this. The events are shown daywise and by Morning, Afternoon and Evening wise. Just right click on those events and select delete. Snapshot: Alternativly Stefano Candori (Activity Journal maintainer) has worked on a BIG FAT ERASER concept. The work has landed in the source code, but it will be available in next ...


5

Stick this in your ~/.bashrc: export HISTCONTROL=ignoredups You could instead use ignoreboth. This it shorthand for both ignorespaces (commands starting with spaces) and ignoredups (duplicates). I prefer ignoredups on its own as I find the default behaviour of ignoring commands with spaces at the front quite annoying when I copy a command off a website ...


5

From About Ubuntu on ubuntu.com. Where did it all begin? Linux was already established as an enterprise server platform in 2004. But free software was still not a part of everyday life for most computer users. That's why Mark Shuttleworth gathered a small team of developers from one of the most established Linux projects – Debian - and ...


5

You can use a guest account for this. Add or remove programs from the admin account, then log in via the guest account. It is reset completely each time someone logs out of it, which is what you want.


4

The answers in the link that you provided from the Super-Users site shouldn't necessarily be viewed as 'workarounds' to the history command's default behavior. The bash shell has some sane, out of the box, default behavior. I would highly recommend reading How can I avoid losing any history lines? for an explanation of what these modifications to history ...


4

With the arrow up key you can quickly access the last command you used. With Ctrl+R you can do a 'reverse-i-search'. That means you just type in any letter or word of a command you already used and it will show up when enough identifying input is given. Typing !$ will insert the last word (or a whole path if it's one) of the last command you used. See here ...


4

I assume that you don't think that your computer has been totally compromised (to check who has been running sudo commands see /var/log/auth.log). It is possible to quickly find files not owned by your user in your home folder and also at what time any files were accessed by using the find command (use -type f for files and -type d for directories). For the ...


4

Command History is generally a feature provided by bash, and is stored per-user in the .bash_history file in your home directory. While the history command may show you different histories in different terminals while those terminals are open, they will all be merged and written to the common ~/.bash_history file once you exit the terminals.


4

A few things worth checking out : uptime command to see how long your computer's been running. Gnome Log Viewer (gnome-system-log) shows all of your logs at one place. Zeitgeist Activity Journal. This gives a brilliant calendar like view to show you what files were opened, and which applications were used.


4

Gwibber holds its data in a SQL database which you can view and amend if you use sqlitebrowser sudo apt-get install sqlitebrowser cd ~/.config/gwibber sqlitebrowser gwibber.sqlite Change the database table to messages - highlight the messages you want to delete - click the delete button and then save the database changes. Note - Gwibber appears to ...


3

You can clear Alt+F2 history in dconf editor. Install dconf editor: Hit Alt+Ctrl+T and run the following command: sudo apt-get install dconf-tools Or search for "dconf-tools" in Software Center and install it from there. Clearing History: Once installed, Hit super key (windows key) to open Unity dash and search for "dconf editor" and open it. Navigate ...


3

Windows isn't a poor man's Linux. I think that is emphasizing the fact that there is no need to look down on windows. Windows is good, and is very suitable for lots of people and business. Saying windows is a poor mans linux does not aid anyone's cause (or vice versa). (the other points seem well explained in other answers)


3

As many have said "uptime" gives you up time. I like to use "htop" to show me information about what's currently running - it's really really nicely formatted, easy for me to skim. If you want to see who's currently logged in, try the command "who". You can dump messages on to their terminals by the "write" command, that can be fun. As for seeing what's ...



Only top voted, non community-wiki answers of a minimum length are eligible