If you have only ever used a computer through clicking icons and dragging windows, the Ubuntu terminal can look intimidating at first. A blank screen waiting for text seems like a step backwards. Yet the command line is where Linux shows its real strength. Once you learn a handful of commands, you will move faster, control your system more precisely, and unlock tasks that the graphical interface simply cannot do as easily. This guide walks you through the essential Ubuntu commands every beginner should know, explaining what each one does and why it matters.

Table of Contents

Why Linux relies on the command line

Ubuntu comes with a polished graphical desktop, so a fair question is why anyone would type commands at all. The answer lies in the history and design of Linux itself. Linux descends from Unix, an operating system built in an era when users interacted with computers through text-only terminals that supported no graphics at all. Commands were deliberately given short names because typing was the only way to work, and that text-first culture carried forward into modern Linux.

The command line interface, often shortened to CLI, is a text-based way to instruct the operating system directly instead of clicking through menus and windows. According to Amazon Web Services, the CLI lets you perform actions on several files with a single text command rather than finding and clicking each one individually, which makes navigation and system interaction far faster once you know the commands.

There are three practical reasons the terminal remains central to Linux. First is efficiency. For experienced users, typing a command is quicker than hunting through a graphical menu. Second is automation. Commands can be combined into scripts that run repetitive tasks without supervision, something that is awkward to achieve by clicking. Third is resource efficiency. As Server Academy notes, the CLI consumes far fewer system resources than a graphical environment, which is why most servers run without a desktop at all.

This last point explains why the terminal is not optional knowledge. Nearly every web server, database, and cloud service runs on Linux, and administrators usually manage these machines remotely over a network connection where no graphical desktop exists. If you want to work in technology, the command line is a skill you will return to again and again.

Basic commands for navigating and managing files

The first thing you do in the terminal is move around and handle files. Open the terminal in Ubuntu by pressing Ctrl+Alt+T. You will see a prompt ending in a dollar sign, which is where you type. The four commands below cover most day-to-day file work.

cd – change directory

The cd command moves you between folders, which Linux calls directories. When you first open the terminal, you start in your home directory, usually located at /home/yourusername. To move into a folder named Documents, you type cd Documents. To go back up one level to the parent directory, you type cd .., where the two dots are a shortcut that always means “the folder above this one.”

One useful detail covered in the official Ubuntu desktop documentation is that a single dot represents the current working directory, while two dots represent the parent. These shortcuts let you describe locations quickly without typing out full paths every time. Remember that directory names are case sensitive, so Documents and documents are treated as two different folders.

ls – list files

The ls command lists the files and directories inside your current location. Typing ls on its own shows the visible contents. Commands often accept extra options called flags that change their behaviour. For example, ls -a reveals hidden files, which in Linux are any files whose names begin with a dot. Another common flag is ls -l, which produces a detailed listing showing file sizes, dates, and crucially the permissions of each file, something we will return to shortly.

cp – copy files

The cp command makes a duplicate of a file or directory. It takes two pieces of information: the file you want to copy and where the copy should go. To copy a file, you type cp source.txt destination.txt. The original stays exactly where it is, so cp is ideal for creating backups or duplicating a file before you edit it. To copy an entire directory along with everything inside it, you add the recursive flag, like cp -r oldfolder newfolder.

mv – move and rename files

The mv command moves a file from one place to another. Unlike cp, it does not leave the original behind. To move a file into another folder, you type mv file.txt Documents/. The same command also renames files, which surprises many beginners. Typing mv old.txt new.txt simply renames old.txt to new.txt, because moving a file to a new name in the same location is, to Linux, the same operation as renaming it. The Maker Pro beginner guide highlights this dual purpose as one of the most convenient features of the command.

System administration commands

Once you are comfortable moving and managing files, the next step is controlling the system itself. These commands touch security, access, and the running state of the machine, so they deserve extra care.

chmod – change file permissions

Every file and directory in Linux carries a set of permissions that decides who can read it, write to it, or execute it. Permissions are split across three groups: the owner, the group, and others. The chmod command, short for “change mode,” is how you adjust these rights. As GeeksforGeeks explains, chmod controls access for owner, group, and others using either symbolic notation or a numeric code.

The numeric, or octal, method is the most common. Each permission has a value: read is 4, write is 2, and execute is 1. You add these together for each of the three groups to form a three-digit number. According to Linuxize, only the root user, the file owner, or someone with sudo privileges can change a file’s permissions, so be careful with this command. For example, chmod 755 script.sh gives the owner full read, write, and execute rights while letting the group and others read and execute. A configuration file often uses chmod 644, and a private file like an SSH key uses chmod 600 so only the owner can touch it.

passwd – change your password

The passwd command changes a user’s login password. Typing passwd on its own lets you change your own password after confirming the current one. An administrator can change another user’s password by typing passwd username. There is a fascinating connection here to permissions. Changing a password means writing to a protected system file called /etc/shadow, which only the root user can access. As described by freeCodeCamp and other permission guides, the passwd program carries a special “setuid” bit that lets it run with the owner’s elevated privileges, so an ordinary user can update their own password safely without being given root access.

shutdown – power down the system

The shutdown command safely powers off or restarts the machine. A graceful shutdown gives running programs time to close properly and avoids data loss, which is why using this command is better than simply pulling the power. Typing shutdown now turns the system off immediately, while shutdown -r now restarts it. You can also schedule a shutdown for later, such as shutdown +10 to power down in ten minutes. Because shutting down affects everyone using the machine, this command also requires administrator privileges.

Using the terminal for everyday efficiency

The real payoff of learning commands comes from the productivity tricks that build on them. A few habits will make you noticeably faster.

Tab completion is the single most useful habit. Start typing a command or file name and press the Tab key, and the terminal completes it for you if there is only one match. This saves typing and prevents spelling mistakes, which matters because, as AWS warns, the CLI requires precise input to produce the correct result.

Aliases let you create short nicknames for commands you use often. The DigitalOcean command guide shows how typing alias lsl="ls -l" means you can run lsl instead of the full command from then on, which is a real time saver for long instructions with many options.

Pipes connect commands together so the output of one becomes the input of another, using the vertical bar symbol. For instance, ls -l | less lets you scroll through a long file listing one page at a time. And when you are ever unsure what a command does, the man command opens its manual page, so man ls displays every option available for ls.

These techniques combine into the deeper advantage that command-line programs can be automated in ways graphical tools cannot. Once you can copy hundreds of files with a single line using wildcards, or write a short script to repeat a task every day, the terminal stops feeling like a limitation and starts feeling like a superpower.

What do you think? Which feels more natural to you for managing files, the point-and-click desktop or the precision of typed commands? And can you think of a repetitive task on your own computer that would be worth turning into a simple terminal script?

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

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?

References
  1. https://aws.amazon.com/what-is/cli/
  2. https://www.serveracademy.com/courses/linux-fundamentals/introduction-to-the-linux-command-line-interface
  3. https://documentation.ubuntu.com/desktop/en/latest/tutorial/the-linux-command-line-for-beginners/
  4. https://maker.pro/linux/tutorial/basic-linux-commands-for-beginners
  5. https://www.geeksforgeeks.org/linux-unix/chmod-command-linux/
  6. https://linuxize.com/post/chmod-command-in-linux/
  7. https://www.freecodecamp.org/news/file-permissions-in-linux-chmod-command-explained/
  8. https://www.digitalocean.com/community/tutorials/linux-commands
  9. https://www.makeuseof.com/why-linux-uses-the-command-line/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

ICT Fundamentals

1 Basics of Computer Technology

  1. Overview of Computer System
  2. Computer Peripherals and Hardware
  3. Computer Peripherals
  4. Computer Hardware
  5. Operating System
  6. Ubuntu Operating System
  7. Ubuntu File System
  8. Common Commands and Utilities

2 Basic of Communication Technology

  1. Analog and Digital Communication
  2. Data Communication Modes
  3. Communication Hardware
  4. Communication Protocols/Standard

3 Basic of Network Technology

  1. Network Concept and Classification
  2. Local Area Network (LAN) Overview
  3. Wide Area Network
  4. Wireless Technology

4 Technology Convergence

  1. What is Convergence?
  2. Goal and Objectives of Convergence
  3. Genesis of Convergence
  4. Convergence Focus
  5. Convergence Architecture
  6. Technology Convergence
  7. Bluetooth Technology
  8. 3G and WiMAX Technologies
  9. Protocol Convergence
  10. Access Convergence
  11. Service Convergence
  12. Convergent Applications

5 Office Tools- Word Processing, Presentation and Spreadsheets

  1. Getting Started with LibreOffice Suite
  2. Word Processing with Writer
  3. Presentations with LibreOffice Impress
  4. Spreadsheets with LibreOffice Calc

6 Database Management systems

  1. File Oriented Approach
  2. Database Approach
  3. Database and DBMS
  4. Levels of Abstraction in a DBMS
  5. Database Environment
  6. Various DBMS Architectures
  7. Types of DBMS Architectures
  8. Database Security
  9. Popular DBMS Packages
  10. Database Project Environment
  11. Database Administrator

7 Multimedia

  1. Multimedia
  2. Characteristics of Multimedia Systems
  3. Types of Media
  4. Print vs Multimedia
  5. Major Areas of Multimedia Use
  6. Advances in Technology
  7. Multimedia Design
  8. Software in Multimedia Systems
  9. Information Collection in Multimedia Systems
  10. Storyboard for Multimedia Systems
  11. Processing in Multimedia Systems
  12. Storing and Retrieving in Multimedia Systems
  13. Issues Related to Multimedia Systems
  14. Data Integrity in Multimedia Systems
  15. Career Path in Multimedia

8 Network Topology

  1. Physical and Logical Topologies
  2. Fully Connected Topology
  3. Star Topology
  4. Hubs and Switches
  5. Bus Topology
  6. Ring Topology
  7. Mesh Topology
  8. Tree Topology
  9. Hybrid Topology
  10. Media Access Control Protocols
  11. Address Resolution
  12. Routers
  13. Routing Algorithms

9 Communication Protocols and Network Addressing

  1. What are Protocols?
  2. Computing Protocols
  3. Communication Protocols: General Concepts
  4. Common Communication Protocols
  5. Basic Communication Protocols: IP, UDP, TCP
  6. Client-Server Architecture
  7. Application Level Communication Protocols: FTP, Telnet
  8. Switching Level Convergence Protocol: ATM
  9. Multi Protocol Label Switching: MPLS
  10. Telephone and Mobile Numbering
  11. Number Portability
  12. IP Addressing: IPv4, IPv6
  13. Web Communication Protocols: HTTP, WAP, LTP

10 Protocol Architecture

  1. Protocol Architecture and Protocol Stack
  2. Layered Architecture
  3. Principles of Layering
  4. ISO-OSI Reference Model
  5. Internet Protocol Architecture: TCP/IP Architecture
  6. Bluetooth Protocol Stack
  7. ISDN Reference Model
  8. ATM Protocol Stack
  9. SONET Hierarchy
  10. Mobile Network Protocol Architecture

11 Network Applications and Management

  1. Service and Application Types
  2. Electronic Text Messaging
  3. Multimedia Messaging
  4. Electronic Mail
  5. Interactive Television (ITV)
  6. Interactive Music (IM)
  7. Application Delivery
  8. Performance Issues
  9. Why Network Management?
  10. Simple Network Management Protocol (SNMP)

12 Network Security

  1. Why Information Security?
  2. Types of Attacks
  3. AAA Security
  4. Firewalls and Proxy Servers
  5. Web Security
  6. Malicious Software
  7. Viruses
  8. Spyware, Spam, Phishing and Cookies
  9. Encryption
  10. Digital Signature
  11. E-mail Security

13 E-Mail and E-Messaging

  1. Defining Email
  2. Need of Email
  3. Email Address
  4. Types of Email Services
  5. Types of Email Account
  6. Structure and Features of Email
  7. Functioning of Email Systems
  8. Messaging
  9. Issues with Messaging
  10. Widgets and Utilities

14 World Wide Web

  1. World Wide Web
  2. Conceptual Framework of WWW
  3. Communication Architecture
  4. Protocols
  5. Markup Languages
  6. Definition and Need (Markup Languages)
  7. Types of Markup Languages
  8. Web 2.0
  9. Features of Web 2.0 Applications
  10. Web 2.0 Applications
  11. Impact of Web 2.0 Tools Over WWW and Semantic Web

15 Search Engines

  1. Search Engines
  2. Types of Search Tools
  3. Features of Search Tools
  4. Architecture of Search Tools
  5. Challenges

16 Interactive and Distributive Services

  1. Web Directory
  2. Bulletin Board
  3. Mailing List and Discussion Lists
  4. Resource Sharing
  5. Online Document Repositories
  6. Web Portals
  7. E-mail
  8. Online Storage and Searching
  9. E-publishing
  10. Webcasting
  11. Interactive Learning
  12. Interactive Business and Trading
  13. Security and Privacy Issues