Hello Sunil
Linux Commands Cheatsheet

Linux Commands Cheatsheet: Basic Linux Commands

21# su

This command stand for switch user. su command is used to switch user, if you are switching from normal user to the superuser, you may need to type sudo su.

Linux-basic-command-sudo su-32

And from superuser to the normal one, just type su [name of the user], example: su sunil.

Linux-basic-command-su-33

22# whoami

This command reveals the user who is currently logged in.

Linux-basic-command-whoami-34

23# ps

This command stands for processes and it displays the currently running processes in the Linux system.

Linux-basic-command-ps-35

24# date

This command displays current date and time of your system.

Linux-basic-command-date-36

25# cal

This command shows the calendar of the current month.

Linux-basic-command-cal-37

26# free -g

This command shows free and used memory in gigabyte.

Additional tips and tricks for using Linux command line

  • You can use the clear command to clear the terminal if it gets filled up with too many commands.
  • Ctrl+C can be used to stop any command in terminal safely. If it doesn’t stop with that, then Ctrl+Z can be used to force stop it.
  • You can exit from the terminal by using the exit command.
  • You can power off or reboot the computer by using the command sudo halt and sudo reboot.

Conclusion:

So these are some of the basic Linux commands you would require in Linux environment from time to time. These commands will take time to learn, and years to master but it will come with many benefits and will become second nature after time.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.

Add comment

Stay Updated

Want to be notified when our article is published? Enter your email address below to be the first to know.

Sunil Pradhan

Hi there 👋 I am a front-end developer passionate about cutting-edge, semantic, pixel-perfect design. Writing helps me to understand things better.