Linux #GettingStarted 

The #cat command is one of the simplest to get started with in #Linux.
If you are in your home directory: '/home/your_name' (type cd and then the Enter key if you're not) try issuing the following command
cat .bash_history
The contents of your .bash_history file should be displayed.
If your history is too long to display on one page you can 'pipe' the output to the less command
cat .bash_history | less
You can now use the j and k keys to navigate down and up the listing and q to quit.


re: Linux #GettingStarted 

@dublinux Your terminal will probably represent your home directory (/home/username) with a single ~

Don't panic, you're home, this is normal.

re: Linux #GettingStarted 

@QBFreak Sure. Typing pwd will display the full name of the current directory.
pwd stands for Present Working Directory. Also is you want another way to see your bash history you can just type history at your terminal instead. Linux is endlessly flexible.
Incidentally bash is the most common 'shell' on Linux but there are others. Bash stands for Bourne again shell.

Sign in to participate in the conversation
MHz social - mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!