Essential Linux Commands: A Practical Reference
Classified in Computers
Written on in
English with a size of 3.95 KB
Essential Linux Commands
File and Directory Management
mkdir: Create a new directory.ls: List contents of a directory.rm: Remove files or directories (-rfor recursive).cp: Copy files or directories.mv: Move or rename files or directories.cat: Display file contents or create files.less: View file contents one page at a time.head: Display the first 10 lines of a file.tail: Display the last 10 lines of a file.
System Information
uname: Show system information (kernel, version, etc.).top: Display running processes and resource usage.df: Show disk space usage.df -h: Show disk usage in human-readable format.free: Display memory usage (RAM and swap).
File Creation and Editing
touch: Create an empty file or update its timestamp.echo: Write text to a file