linux

Linux Command History




Command History
It is unnecessary to type the same command over and over. The linux bash shell remembers your past commands.These commands are stored in the .bash_history file in each user's home directory.




To use the history, press the up arrow to scroll backward through the commands you have already entered. The [Ctrl]-[R] shortcut searches through your previous commands. Press [Ctrl]-[R] and type the beginning of the command you previously issued. The linux command history stops at the most recent version of that command.

Commands that you only typed partially and did not follow with [Enter] are not saved into your command history file. To clear your command history, type history -c.

By default, RedHat Linux stores 1000 commands. Each terminal window or shell prompt stores a separate set of commands. If you gain root privileges by using the command su -, the history file (and thus the commands) you access are root's, not the user's.


                           send to a friend                                            moby@mylinuxplanet.com      

Please free to mail your queries and feed back at moby@mylinuxplanet.com a free linux tutorial website


Linux Tutorials

About This Site

History of Linux

Open Source

File system terms

Linux File System

History of Shell

Opening a Shell Prompt

Shell Prompt Basics

Linux Shell Prompt

Linux Commands

Viewing Text Files From The Shell

Manipulating Information from Shell

Linux Help

Managing Linux Files

Multiple Commands Usage

Managing Linux Directories

Linux Directory Commands

Locating And Search Commands

Command History

Wildcard Characters

Creating a Linux User

Ownership And Permissions

File Compression

Virtual Console Logout & Shutdown

Running Background Process

Shell Prompt Keyshortcuts

Clearing And Resseting Terminal

Vi Editor

Shell Scripting

Installing and Removing Applications

Servers in Linux

Our Link Partners