Linux tricks and tips for beginners

Featured image

Many of us use Linux, we mostly use Ubuntu which is beginner friendly with a good UI.

1. A small chat in Terminal:

When ever you are in a local connection, you might want a small session in terminal to connect with your friend, here comes nc command. To begin with, assume one member as host and the other as a client. The host should start the connection with the below command.

nc -l 2222

The client should enter below command.

nc -l 192.168.102.73 2222

192.168.102.73 is the IP address of the host. Check the IP address of the host by typing ifconfig command and finally enter the port number.

That’s it!! you are now connected. You can send the text messages.. If you want to terminate the session press CTRL + c

2. History clear:

History in Terminal is Handy thing, but for some users want to clear it. We can clear the history by

history -c

3. Manual or Help:

To get the manual or docs for a command

man nc

which ever command you want type it after man.

4. sudo:

Sudo is a super user command used to passing the command as a super user.

sudo gedit test.py

Sudo meme

Sudo meme

5. Shutdown and Restart:

If you are a keyboard user