WriteBash - Okey, after you’ve used a terminal emulator for the first time. Now we will try some simple commands on the terminal. This helps you become more familiar with using a terminal to work with the operating system.
Some simple commands on the terminal
Now we will try some very simple commands on the terminal as follows. Open the terminal emulator program on your computer and type the following commands into it.
date command. This command displays the current time and date.
danie@linuxmint ~ $ date Fri Jan 11 21:37:58 +07 2019
Let’s type another command, type
cal. This command displays a calendar of the current month.
Try typing a command that most people are familiar with. That is the
echo command. This command will print out the screen contents of the text. When you type it in the terminal window, it will print the text you just typed on the same window.
danie@linuxmint ~ $ echo "Hello, I'm Danie." Hello, I'm Danie.
Now, if you press the up key, you will see the
echo command you just typed. This is the command history. Most Linux operating systems will save the last 1000 commands you have typed on the terminal.
When you use the up/down arrow keys, you will see different commands that you typed earlier. If you want to see the entire command history that you typed, type the
danie@linuxmint ~ $ history 1946 date 1947 cal 1948 echo "Hello, I'm Danie." 1949 history danie@linuxmint ~ $
Exit the terminal
Of course, on the graphical interface, you can exit the terminal window by clicking on the x sign icon.
If on an environment like Linux server with a command line interface, you will need to type
exit to exit the current terminal session.
danie@linuxmint ~ $ exit
By typing some simple commands above, I think you have begun to understand how to work on linux via the command line. The next article, I will talk more about commands on Linux.If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.