DEV Community

Mujahida Joynab
Mujahida Joynab

Posted on

Linux Commands

Navigate — Use cd to move around; cd / goes to root, just cd goes home, and cd /etc/audit jumps straight to that folder.

Look around — Use ls -l (or ll) to see detailed file lists; add --help to any command when stuck (like ls --help).

Create things — mkdir folder_name makes a directory, touch file.txt makes an empty file, and vim or nano edits files.

Configure the system — The /etc/ directory holds all config files; for example, change SSH port in /etc/ssh/sshd_config for better security.

Remember superpowers — Always use sudo before editing system files (like sudo vim /etc/ssh/sshd_config) to act as admin.

Top comments (0)