Try some simple commands on the Terminal

Share this post to your friends !

This entry is part 3 of 3 in the series Linux commands: Part 1 - What is the Shell?

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.

Let’s type 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-some-simple-commands-on-the-terminal Try some simple commands on the Terminal
Type “cal” command on the terminal.

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.

Command “history”

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 history command.

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.

Continue reading the series«« Previous part: Use Terminal Emulator for the first time
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.

Share this post to your friends !
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

single post bottom banner
«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.