Follow

Linux #GettingStarted 

The command is one of the simplest to get started with in .
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.

Linux #GettingStarted 

To learn more about the cat command try typing 'man cat' at your terminal. man stands for manual. If you don't have a file called .bash_history you can find another file by doing a directory listing by issuing the command ls
and then choosing one of the files(preferably a text one) to display. So if your listing displays a file called email.txt then the command cat email.txt should display the text. To open the file email.txt try typing nano email.txt or xed email.txt or gedit email.txt

Linux #GettingStarted 

nano, xed, gedit and vim are text editors like Notepad or Notepad++. and are very powerful editors but take some work to get started with. Searching online for a program called is one avenue to getting started with Vim. Or it might already be installed on your machine. Try typing vimutor at your terminal. For most people at least 6 hours practice is needed before any real work can be done in Vim so set aside a Friday or a Saturday if you are short on time.

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
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!