0% found this document useful (0 votes)
8 views1 page

Linux Terminal Commands Cheatsheet

This document is a cheat sheet for essential Linux terminal commands, categorized into file and directory commands, viewing and editing files, permissions and ownership, system information, networking commands, and package management for Debian/Ubuntu. It includes commands such as 'ls' for listing files, 'chmod' for changing permissions, and 'apt install' for installing packages. This resource serves as a quick reference for users performing daily tasks in the Linux environment.

Uploaded by

inobiwtowa
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)
8 views1 page

Linux Terminal Commands Cheatsheet

This document is a cheat sheet for essential Linux terminal commands, categorized into file and directory commands, viewing and editing files, permissions and ownership, system information, networking commands, and package management for Debian/Ubuntu. It includes commands such as 'ls' for listing files, 'chmod' for changing permissions, and 'apt install' for installing packages. This resource serves as a quick reference for users performing daily tasks in the Linux environment.

Uploaded by

inobiwtowa
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
You are on page 1/ 1

Linux Terminal Commands Cheat Sheet

File & Directory Commands:


 ls — List files and directories.
 cd [directory] — Change directory.
 pwd — Print working directory.
 mkdir [directory] — Make a new directory.
 rm [file] — Remove a file.
 rm -r [directory] — Remove a directory.
 cp [source] [destination] — Copy files.
 mv [source] [destination] — Move or rename files.
 touch [file] — Create an empty file.

Viewing & Editing Files:


 cat [file] — Display file contents.
 less [file] — View file contents page by page.
 nano [file] — Simple text editor.
 vim [file] — Advanced text editor.

Permissions & Ownership:


 chmod [options] [file] — Change file permissions.
 chown [owner] [file] — Change file owner.
 chgrp [group] [file] — Change file group.

System Information:
 uname -a — Display system information.
 df -h — Disk space usage.
 top — Display running processes.
 uptime — Show how long the system has been running.

Networking Commands:
 ping [host] — Test network connection.
 ifconfig — Display IP configuration.
 netstat -tulnp — Network statistics.

Package Management (Debian/Ubuntu):


 apt update — Refresh package lists.
 apt upgrade — Upgrade installed packages.
 apt install [package] — Install new package.
 apt remove [package] — Remove a package.

This cheat sheet covers essential Linux commands for daily tasks.

You might also like