Skip to main content

Basics for Shell and Bashs

Command-line basics are the commands for moving through the filesystem and managing files, plus the built-in ways to look up what a command does. They sit at the start of the Shell and Bash path because every later skill, from pipes to scripts, assumes you can navigate and read documentation.

Stage: Command Line · Part of the Shell and Bash roadmap · Last reviewed 19 November 2026

What to learn in Basics

Basics interview questions

What is the difference between an absolute and a relative path?

An absolute path starts at the root directory, for example /home/asha/notes.txt, and means the same thing wherever you are. A relative path is resolved from the current working directory, so notes.txt or ../data/log.txt depends on where you ran the command.

What does chmod 755 file do?

It sets the permission bits using octal digits. The owner gets read, write and execute (7), while group and others get read and execute (5). It is a common mode for scripts and directories that everyone should be able to enter or run but not modify.

Where Basics fits in the Shell and Bash roadmap

Basics belongs to the Command Line stage (beginner level), which takes about 12 hours. Everyday use.

Back to the full Shell and Bash roadmap