🧠 SemiSimTech Intuition Lab

Linux Command Intuition

From memorizing commands to understanding intent: inspect the system, navigate files, search intelligently, mount storage, and control system state safely.

Core Theme
Command intent, not screenshots
Command Families
System β€’ Files β€’ Search β€’ Mount
Learning Goal
Know what command to use and why
Format
Systematic extracted reference

πŸ“š Navigation

🧩 Big Picture

This version removes the inserted screenshot figures and presents the extracted Linux command information systematically. The learning target is to understand command intent: what question you are asking, what object you are acting on, and what risk the command carries.

System Info Navigation Search Mounting Safety
Master frame

🧭 Linux command intuition: always ask β€œwhat object am I acting on?”

The 5 command families in your images

1) System information: learn what machine/system you are on
2) Shutdown/reboot: control system state
3) Files/directories: move around and inspect the filesystem
4) Search: find files, executables, packages, and commands
5) Mounting: attach storage or remote shares into the directory tree

Core Linux intuition

Linux treats almost everything as a file or path. Most commands answer one of these questions:

β€’ Where am I? β†’ pwd
β€’ What is here? β†’ ls
β€’ Where is something? β†’ find / locate / which / whereis
β€’ What is this system? β†’ uname / lspci / lsusb / /proc
β€’ How is storage attached? β†’ mount / umount / /proc/mounts
β€’ How do I safely stop/restart? β†’ shutdown / reboot

Category 1

πŸ–₯️ System information commands β€” know your machine before debugging

QuestionCommandIntuition
CPU architecture?uname -m / archIs it x86_64, arm64, etc.? Important for binaries and libraries.
Kernel version?uname -r / cat /proc/versionUseful for drivers, compatibility, and support tickets.
Hardware inventory?dmidecode -qBIOS/DMI/SMBIOS hardware info.
CPU details?cat /proc/cpuinfoCPU model, cores, flags.
Memory usage?cat /proc/meminfoRAM totals and usage details.
Swap usage?cat /proc/swapsWhich swap devices/files are active.
Network stats?cat /proc/net/devNetwork interfaces and RX/TX counters.
Mounted filesystems?cat /proc/mountsWhat storage/filesystems are currently attached.
PCI/USB devices?lspci -tv / lsusb -tvTree view of PCI/USB hardware.
Date/time?date / cal 2007Show current date or a calendar.
DSE/debugging use

Before installing a PDK, running a simulator, or debugging tool issues, first learn the machine: architecture, kernel, RAM, devices, mounts, and date/time.

Be careful

date 041217002007.00 and clock -w change system/BIOS time. Use only when you really intend to change time.

Extracted visual anchor: Original image: system information commands

Use this as the visual memory anchor for /proc, uname, hardware, and date commands.

Category 2

⏻ Shutdown/reboot commands β€” control system state safely

IntentCommandNotes
Shutdown nowshutdown -h nowSafe shutdown with halt/poweroff behavior.
Shutdown via init levelinit 0 / telinit 0Older/sysvinit style; less common on modern systems.
Schedule shutdownshutdown -h hours:minutes &Schedule shutdown in background.
Cancel scheduled shutdownshutdown -cCancels pending shutdown.
Reboot nowshutdown -r now / rebootRestart system.
Logout shell/sessionlogoutExit current login shell, not power off system.
Safety rule

Do not run shutdown/reboot commands on shared company Linux servers unless you are authorized. For your own workstation, prefer normal GUI logout/shutdown unless you are practicing.

Extracted visual anchor: Original image: shutdown + file/directory commands

Top half shows system state commands; bottom half shows navigation commands.

Category 3

πŸ“ File and directory commands β€” build navigation muscle memory

IntentCommandIntuition
Go to /homecd /homeAbsolute path starts from root /.
Go up one levelcd ..Parent directory.
Go up two levelscd ../..Two parent levels.
Go homecdYour own home directory.
Go to another user homecd ~user1User1’s home directory if accessible.
Return to previous directorycd -Very useful when jumping between two folders.
Print current pathpwdAlways use before destructive operations.
List fileslsBasic directory listing.
Classify file typesls -FAdds markers like / for dirs, * for executable.
Detailed listls -lPermissions, owner, size, modified time.
Show hidden filesls -aShows dotfiles like .bashrc.
Pattern matchls *[0-9]*Shows names containing digits.
Tree viewtree / lstreeDirectory tree structure.
Create directorymkdir dir1Make new folder.
Most useful daily combo

pwd
ls -la
cd <target>
cd -

This is enough for 70% of navigation/debugging work.

Extracted visual anchor: Original image: file and directory commands

Use this visual to memorize cd, pwd, ls, tree, and mkdir.

Category 5

πŸ’½ Mounting filesystem commands β€” attach devices into the Linux directory tree

Mount intuition

Linux does not use C: / D: like Windows. A disk/USB/ISO/network share becomes visible only after it is attached to a directory called a mount point, such as /mnt/usbdisk.

IntentCommandNotes
Mount disk partitionmount /dev/hda2 /mnt/hda2Attach device to directory.
Unmount diskumount /dev/hda2Detach safely.
Force users off mountfuser -km /mnt/hda2Kills processes using mount; dangerous.
Unmount without mtab updateumount -n /mnt/hda2Avoid writing mtab.
Mount ISO imagemount -o loop file.iso /mnt/cdromTreat ISO file like a block device.
Mount FAT32mount -t vfat /dev/hda5 /mnt/hda5Windows FAT32 filesystem.
Mount USB diskmount /dev/sda1 /mnt/usbdiskUSB usually appears as /dev/sdX.
Mount Windows sharemount -t smbfs -o username=user,password=pass //WinClient/share /mnt/shareOlder smbfs syntax; modern Linux often uses cifs.
Safety rule

Always unmount before removing USB/disk:
umount /mnt/usbdisk

If β€˜device is busy’, run:
lsof +f -- /mnt/usbdisk
or
fuser -v /mnt/usbdisk

Extracted visual anchor: Original image: mount filesystem commands

Use this to memorize device β†’ mount point β†’ filesystem type.

🧠 Flashcards

Click each card to reveal the answer. All original flashcards are preserved.

Q1. How do you show the current directory?
pwd
Click to reveal / hide
Q2. How do you go back to the previous directory?
cd -
Click to reveal / hide
Q3. What is the difference between ls -l and ls -a?
ls -l gives detailed info; ls -a includes hidden files.
Click to reveal / hide
Q4. How do you find a file named file1 from root?
find / -name file1
Click to reveal / hide
Q5. What does -mtime -10 mean in find?
Modified within the last 10 days.
Click to reveal / hide
Q6. What does -atime +100 mean in find?
Not accessed for more than 100 days.
Click to reveal / hide
Q7. which vs whereis?
which shows executable path used by shell PATH; whereis shows binary/source/man locations.
Click to reveal / hide
Q8. What is mounting?
Attaching a device/ISO/share to a directory path so Linux can access it.
Click to reveal / hide
Q9. How do you mount an ISO?
mount -o loop file.iso /mnt/cdrom
Click to reveal / hide
Q10. What command shows CPU info?
cat /proc/cpuinfo
Click to reveal / hide

πŸ“˜ Glossary

All original glossary terms are preserved below.

root directory /

Top of the Linux filesystem tree.

absolute path

Path starting from /, e.g. /home/user.

relative path

Path relative to current directory, e.g. ../dir.

hidden file

File beginning with a dot, e.g. .bashrc.

mount point

Directory where a filesystem is attached.

device file

Path under /dev representing hardware or virtual device, e.g. /dev/sda1.

/proc

Virtual filesystem exposing kernel/system information.

SMBIOS / DMI

Firmware-provided hardware information used by dmidecode.

atime / mtime

Access time / modification time used by find.

PATH

Shell variable listing directories searched for executables.

πŸš€ Final Insight

Linux command learning becomes easier when commands are grouped by intent.

First ask what you want to know or change: system information, directory location, file search, device mounting, or system state. Then choose the command family and apply the safest command first.