0% found this document useful (0 votes)
2 views2 pages

Essential Linux Command Guide

This document provides a comprehensive overview of basic Linux commands categorized into file and directory commands, file viewing and editing, file compression, permissions, and system information. Key commands include listing files, changing directories, editing files, compressing data, and checking system status. It serves as a quick reference guide for users to perform essential tasks in a Linux environment.

Uploaded by

Harsha Gowda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Essential Linux Command Guide

This document provides a comprehensive overview of basic Linux commands categorized into file and directory commands, file viewing and editing, file compression, permissions, and system information. Key commands include listing files, changing directories, editing files, compressing data, and checking system status. It serves as a quick reference guide for users to perform essential tasks in a Linux environment.

Uploaded by

Harsha Gowda
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Basic Linux Commands

FILE & DIRECTORY COMMANDS

ls - List files and folders

ls -l - Detailed list

ls -a - Show hidden files

pwd - Show current directory path

cd folder - Change directory

cd .. - Go back one directory

mkdir folder - Create a folder

rmdir folder - Delete empty folder

rm [Link] - Delete a file

rm -r folder - Delete folder with contents

FILE VIEWING & EDITING

cat [Link] - View file content

less [Link] - View file page by page

head [Link] - First 10 lines

tail [Link] - Last 10 lines

tail -f [Link] - Live log monitoring

nano [Link] - Edit file

vi [Link] - Edit file

FILE COMPRESSION

tar -cvzf [Link] folder - Create tgz


tar -xvzf [Link] - Extract tgz

zip -r [Link] folder - Create zip

unzip [Link] - Extract zip

PERMISSIONS

chmod 755 file - Change permissions

chown user:group file - Change owner

SYSTEM INFO

whoami - Current user

hostname - Server name

df -h - Disk usage

free -m - Memory usage

top - Running processes

You might also like