basic linux commands

Linux Basics: Understanding and Using Basic Linux Commands

Introduction to the pwd,ls,rm and more commands

Whether you’re new to the Linux world or just need a refresher, understanding the basic commands can enhance your productivity and effectiveness in Linux. This guide will introduce you to some fundamental Linux commands and demonstrate their usage.

Navigating Directories in Linux

Navigating directories in a Linux environment is crucial for accessing files and folders.

The pwd Command

The pwd (Print Working Directory) command displays the full pathname of the current directory.


The cd Command

The cd (Change Directory) command is used to change the current directory.

cd directory_name

Listing Files and Directories in Linux

Getting a list of files and directories in your current location is a common task.

The ls Command

The ls command lists files and directories in the current directory. To display more details about files and directories (like permissions, ownership, size, and modification time), use the -l option:

ls -l

Be sure and read our other article which explains the List command and permissions of files and directories.

Linux Basics: Managing File Ownership and Permissions with chown and chmod

Manipulating Files and Directories in Linux

Creating, renaming, and removing files and directories are essential skills for Linux users.

The touch Command

The touch command creates an empty file.

touch filename

The mkdir Command

The mkdir (Make Directory) command creates a new directory.

mkdir directory_name

The rm Command

The rm (Remove) command deletes a file. To remove a directory and its contents, use the -r (recursive) option:

rm -r directory_name


These basic commands lay the foundation for efficient operation in a Linux environment. The key is to keep practicing and exploring the manifold utilities of these commands until you’re comfortable with them.

Remember, you can use the man command followed by any Linux command to open the manual page for that command. It’s a great way to learn about different options and usages.

man command_name

Stay tuned to PureVoltage’s blog for more articles in our “Linux Basics” series. Whether you’re a beginner or an experienced user, we strive to provide valuable knowledge to enrich your Linux journey.