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

Linux Cheat Sheet Expanded

This document is a cheat sheet for Linux commands, covering file system commands, file permissions, process management, networking commands, user management, disk management, package management, and shell scripting basics. It provides concise command syntax and usage examples for each category. The cheat sheet serves as a quick reference for users to efficiently navigate and manage Linux systems.

Uploaded by

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

Linux Cheat Sheet Expanded

This document is a cheat sheet for Linux commands, covering file system commands, file permissions, process management, networking commands, user management, disk management, package management, and shell scripting basics. It provides concise command syntax and usage examples for each category. The cheat sheet serves as a quick reference for users to efficiently navigate and manage Linux systems.

Uploaded by

raghubirkar11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Java Cheat Sheet

Linux Cheat Sheet

1. File System Commands

ls - List directory contents


pwd - Print working directory
cd <dir> - Change directory
mkdir <dir> - Create a new directory
rm <file> - Remove a file
rm -r <dir> - Remove a directory recursively
cp <source> <dest> - Copy files or directories
mv <source> <dest> - Move/rename files or directories

2. File Permissions

chmod 777 <file> - Set file permissions


chown user:group <file> - Change file ownership
ls -l - View detailed file permissions

3. Process Management

ps - List running processes


top - Display active processes
kill <PID> - Terminate a process
killall <process> - Kill all instances of a process

4. Networking Commands

ifconfig - Display network configuration


ping <host> - Send ICMP echo request to test connectivity
netstat - Display network statistics
curl <URL> - Fetch data from a URL

5. User Management
Java Cheat Sheet

whoami - Display current user


who - Show logged-in users
adduser <user> - Create a new user
passwd <user> - Change user password
deluser <user> - Delete a user

6. Disk Management

df -h - Show disk usage


du -sh <dir> - Show directory size
mount <device> <dir> - Mount a device
umount <device> - Unmount a device

7. Package Management

apt-get install <package> - Install a package (Debian/Ubuntu)


yum install <package> - Install a package (RHEL/CentOS)
pacman -S <package> - Install a package (Arch Linux)

8. Shell Scripting Basics

#!/bin/bash
echo "Hello, Linux!"
VAR="Hello"
echo $VAR

You might also like