Skip to content

Linux Command Line

Master Linux Command Line with 51 free flashcards. Study using spaced repetition and focus mode for effective learning in Technology.

🎓 51 cards ⏱️ ~26 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What is the Linux command line interface (CLI)?

Show ▼

The Linux CLI is a text-based interface for interacting with the operating system using commands entered via a terminal emulator, allowing users to perform tasks efficiently without a graphical user interface.

What is a shell in Linux?

Show ▼

A shell is a program that interprets commands entered into the CLI, processes them, and communicates with the kernel; common shells include Bash (Bourne Again SHell), the default on most distributions.

How do you open a terminal in Linux?

Show ▼

Use keyboard shortcuts like Ctrl+Alt+T on Ubuntu or search for 'Terminal' in the applications menu; it launches a shell session for command execution.

What does the <code>pwd</code> command do?

Show ▼

The pwd (Print Working Directory) command displays the absolute path of the current working directory, helping users confirm their location in the filesystem.

How do you list files and directories in the current directory?

Show ▼

ls lists files and directories; add flags like -l for detailed view, -a to show hidden files, or -h for human-readable sizes.

What does <code>cd</code> do and how is it used?

Show ▼

The cd (Change Directory) command navigates to a different directory; use cd /path for absolute paths, cd .. to go up one level, or cd ~ for home.

What is the home directory and how to access it?

Show ▼

The home directory is the user's personal folder, typically /home/username; access it with cd or cd ~.

How do you create a new directory?

Show ▼

Use mkdir directory_name to create a single directory or mkdir -p /path/to/nested/dir for parents; it fails if the directory already exists.

How do you create an empty file?

Show ▼

touch filename creates an empty file or updates the timestamp of an existing one, useful for initializing files.

What does <code>cp</code> do?

Show ▼

cp source destination copies files or directories; use -r for recursive directory copies and -i for interactive prompts.

How do you move or rename a file?

Show ▼

mv source destination moves files/directories or renames them if destination is in the same directory.

What is the <code>rm</code> command?

Show ▼

rm file removes files; rm -r dir deletes directories recursively, and -f forces without prompts—use cautiously as deletions are permanent.

🎓 Start studying Linux Command Line

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Technology

📖 Learning Resources