# Linux Cheatsheet

## **Navigation:**

* **ls**: List files and directories in a directory
    
* **cd**: Change the current working directory
    
* **pwd**: Display the current working directory
    

## File Management:

* **cp**: Copy files and directories
    
* **mv**: Move or rename files and directories
    
* **rm**: Delete files and directories
    
* **touch**: Create an empty file
    
* **chmod**: Change file permissions
    
* **chown**: Change file ownership
    

## Directory Management:

* **mkdir**: Create a new directory
    
* **rmdir**: Remove an empty directory
    

## Process Management:

* **ps**: Display information about running processes
    
* **top**: Display real-time information about system performance and resource usage
    
* **kill**: Terminate a process
    
* **bg**: Send a process to the background
    
* **fg**: Bring a background process to the foreground
    

## System Information:

* **uname**: Display information about the operating system
    
* **df**: Display information about disk usage
    
* **free**: Display information about memory usage
    
* **uptime**: Display the system uptime
    

## User Management:

* **adduser**: Add a new user
    
* **deluser**: Remove a user
    
* **addgroup**: Add a new group
    
* **delgroup**: Remove a group
    
* **usermod**: Modify a user account
    

## Package Management:

* **apt-get**: Install, update, or remove packages on Debian-based systems
    
* **yum**: Install, update, or remove packages on Fedora-based systems
    
* **dnf**: Install, update, or remove packages on Fedora-based systems
    
* **pacman**: Install, update, or remove packages on Arch-based systems
    

This cheat sheet covers only the basics of Linux system administration, but mastering these commands can go a long way in making your work easier and more efficient.

---

## **Git Cheatsheet**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373114381/18f8feb1-082e-4dec-a5c5-faf8758662f2.png align="center")

Here are some more details about the git commands and git workflow,

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373230349/dc33bdc8-606b-4cab-8493-c9b400be63eb.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373274585/575861f0-846a-41a5-9fb8-faee98e3619a.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373322917/98c04f46-c67a-4b18-a1eb-92103c0753e6.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373340945/9955a67e-330d-496f-806c-fb29fe4c4dee.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692373352803/566fe58b-9cdd-40a7-87fc-d7f99009e8da.jpeg align="center")
