Fundamentals 7 min read

10 Essential Linux Commands to Turn a Beginner into a Pro

This article introduces ten core Linux terminal commands—covering user management, file listing, navigation, file creation, deletion, and I/O redirection—explaining each command’s purpose, common options, and practical examples so newcomers can quickly become proficient.

Linux Tech Enthusiast
Linux Tech Enthusiast
Linux Tech Enthusiast
10 Essential Linux Commands to Turn a Beginner into a Pro

Open vs. closed source OS

Open‑source operating systems can be examined by many people, so bugs are discovered and fixed more quickly, resulting in more stable, secure, and efficient releases. Closed‑source systems may have slower bug discovery and lower‑quality fixes.

Basic user management commands

adduser user_name    # add a new user named user_name
passwd user_name    # set login password for user_name
userdel user_name    # delete the user named user_name

ls command

Purpose: list directory contents or file information.

ls -l    # detailed file information
ls -a    # include hidden files (those starting with .)
ls -d    # display directory entries themselves, not their contents
ls -i    # show inode number
ls -k    # display size in kilobytes
ls -n    # show numeric UID/GID instead of names
ls -F    # append a character to indicate file type (* executable, / directory, @ symlink, | FIFO, = socket)
ls -r    # reverse sort order
ls -t    # sort by modification time
ls -s    # show size after the filename
ls -R    # recursively list sub‑directories
ls -1    # one entry per line
ls example
ls example

File concept

A file consists of content plus attributes (metadata). Operations therefore target either the data or the metadata.

file concept
file concept

pwd command

Displays the current working directory.

pwd output
pwd output

cd command

Change directory: cd directory_name. Special shortcuts: ~ returns to the home directory, - returns to the previous directory.

cd example
cd example

File attribute basics

Attributes indicate type: a leading - denotes a regular file, d denotes a directory. Permissions are split into three groups—owner, group, and others—each with read ( r), write ( w), and execute ( x) bits.

permissions
permissions

mkdir command

Create a directory: mkdir directory_name.

mkdir example
mkdir example

rm command

Delete files or directories.

rm -f    # force deletion
rm -r    # recursively delete directories
rm -f
rm -f
rm -r
rm -r

touch command

Update a file’s access and modification timestamps, or create an empty file if it does not exist.

touch file_name
touch example
touch example

stat command

Display detailed file attributes (size, timestamps, permissions, etc.).

stat output
stat output

tree command

Show a visual directory tree.

tree path
tree output
tree output

man command

Show the manual page for a command.

man command_name
man page
man page

which command

Locate the executable file associated with a command.

which command_name
which path
which path

alias command

Create an alias (shortcut) for another command.

alias example
alias example

I/O redirection

Input redirection: < file feeds a file’s contents to a command.

Output redirection: > file writes command output to a file, overwriting existing content.

Append redirection: >> file appends command output to the end of a file.

output redirection
output redirection
input redirection
input redirection
append redirection
append redirection

Linux “everything is a file” principle

In Linux, virtually all resources—devices, sockets, pipes—are represented as files, allowing uniform handling of I/O.

everything is a file
everything is a file
basicsterminalcommand-linefile-system
Linux Tech Enthusiast
Written by

Linux Tech Enthusiast

Focused on sharing practical Linux technology content, covering Linux fundamentals, applications, tools, as well as databases, operating systems, network security, and other technical knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.