Fundamentals 6 min read

8 Essential Linux Command-Line Tricks Every Beginner Should Know

This guide presents eight practical Linux tips—from handling special filenames and using the Tab key for auto‑completion to quickly shutting down the system and booting Linux from DOS—helping newcomers work more efficiently on the command line.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
8 Essential Linux Command-Line Tricks Every Beginner Should Know

1. Handling special filenames

When a filename begins with a hyphen (e.g., -ee), the shell treats it as an option; prepend -- or quote the name to operate on it, e.g., rm -- -ee.

2. Installing Linux directly from a floppy or DOS

Use the loadlin.exe program on the installation CD to load the Linux kernel into memory and start the installer, e.g.,

loadlin E:images/vmlinuz root=/dev/ram initrd=E:images/initrd.img

.

3. Recovering from X‑Windows freezes

Press Ctrl+Alt+Backspace to kill the X server, or switch to a virtual console with Ctrl+Alt+F2, locate the X server PID using ps -ax | grep startx, then terminate it with kill -9 PID and return with Alt+F1.

4. Quickly shutting down Linux

Modern Linux/UNIX systems use journaling file systems that allow you to simply power off the machine safely, as the filesystem automatically syncs data.

5. Using rm effectively

Delete a non‑empty directory with rm -r directory_name, which recursively removes all files and sub‑directories.

6. Accelerating command entry with the Tab key

Press Tab to auto‑complete a partially typed filename when it is unique, e.g., typing tar xvfz /ccc/d and pressing Tab expands to tar xvfz /ccc/ddddddd-1.2.3.tar.gz.

7. Copy‑paste with the mouse

After installing the gpm daemon, you can select text with the left mouse button and paste it with the right button, both in console and X environments.

8. Fast booting Linux from DOS

Place loadlin.exe and the kernel image on a DOS partition, create a batch file (e.g., Linux.bat) that runs loadlin c:\vmlinuz root=/dev/hda1 ro, and execute it to start Linux without rebooting.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

command-lineUnixTipsBeginner
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

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.