[7] Advanced and Useful Linux — Ubuntu Commands

Hey everyone, So in this article, we will talk about the 7 advanced Linux-Ubuntu commands. Everyone knows that the Linux-based operating system is the best due to its flexibility, open-source platform, portability, command-line interface, and compatibility with popular development tools.

If you are a beginner in Ubuntu commands, then you should have to read this article Introduction to Linux — Ubuntu Basic Commands. It would be helpful to start or learn the basics of Linux commands.

So, without taking more time, here are the most useful Ubuntu commands and some Terminal shortcuts that will help you to execute commands more quickly, to ease up your Linux journey.

List of Advanced Linux commands

1. sudo

sudo (SuperUser DO), Linux command allows you to run commands or other programs with administrative privileges, just like “Run as administrator” in Windows. This is useful when, for example, you need to modify or copy files in a directory that your user wouldn’t normally have access to.

2. vi (Vim Editor)

The vi command in Linux allows a user to edit any text content inside the Vim text editor from the terminal.

This is what vi editor looks like:-

Here’s a list of commonly used keyboard shortcuts used inside the Vim editor in Linux:

  • Press i : Used to enter insert mode in Vim editor. Use the Esckey to exit out of insert mode.
  • Press dd : Delete a line quickly.
  • Press yy : Copy a line/lines inside the editor.
  • Press p/P : Paste command
  • Press u : Undo command
  • Press Ctrl+r : Redo command
  • Press :wq : Save and quit Vim editor.
  • Press :q : Quit Vim editor without saving a file.

3. cat

To have a look at the users present in our system, we can run this command

cat /etc/passwd

4. useradd

To add a new user to the system we can use this command

useradd username

5. passwd

To set passwords for the users we have passwd command.

passwd username

6. userdel

We can use this command to delete the users.

userdel username

And we can see no output in the user’s directory. So if you check the username using grep then, it won’t be shown because it is deleted.

7. whatis

whatis command shows a brief description of what is the functionality of specific built-in Linux command.

whatis <command>

A few Examples are

  • whatis cd
  • whatis man
  • whatis help

The above commands will display the purpose of cd, man, and help commands.

So, that’s all about the useful advanced commands of Linux-Ubuntu these are the most frequently used commands which every developer should know. These commands will surely help you to deal with the daily operations.

For more such content keep following and subscribing to this page. Please reach out to us in the comment section or drop us an email here at SidTechTalks, we will surely help you in clearing doubts.


Also, read



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Siddharth Rastogi

I am a full stack developer, I have an expertise in Web Development. I write tech stuff and share my knowledge with others with the help of articles.