Show Menu
Cheatography

Linux Commands Cheat Sheet by

This cheat sheet serves as a handy reference for both Linux system administration tasks and software development using Git, Lua, and Love2D. It's a practical tool for users who want quick access to these commonly used commands in their daily workflow.

Basic Commands

ls
List files and direct­ories in the current directory.
cd
Change the current directory.
pwd
Print the working directory.
mkdir
Create a new directory.
touch
Create an empty file.
rm
Remove files or direct­ories (use with caution).
cp
Copy files or direct­ories.
mv
Move or rename files or direct­ories.
cat
Display the contents of a file.
grep
Search for text in files.
chmod
Change file permis­sions.
sudo <co­mma­nd>
Execute a command with superuser privil­eges.
ps
List running processes.
top
Display dynamic system statis­tics.
df
Display disk space usage.
du
Display directory space usage.
 

Git Commands

git status
Display the status of the working directory.
git init
Initialize a new Git reposi­tory.
git clone <re­po-­url>
Clone a remote reposi­tory.
git add
Stage changes for commit.
git commit
Commit changes to the reposi­tory.
git log
Show commit history.
git pull
Fetch and merge changes from a remote reposi­tory.
git push
Push local changes to a remote reposi­tory.
git branch
List branches in the reposi­tory.
git checkout <br­anc­h>
Switch to a different branch.
git merge
Merge changes from one branch into another.

Love2d/Lua Commands

lua
Start the Lua interp­reter in the terminal.
love
Run a Love2D game/a­ppl­ica­tion.
Example:
love mygame
to run a Love2D game located in the "­myg­ame­" directory.
       
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Bash Dev Cheat Sheet
          Git command Cheat Sheet
          Git Cheat Sheet