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.
ls |
List files and directories 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 directories (use with caution).
|
cp |
Copy files or directories.
|
mv |
Move or rename files or directories.
|
cat |
Display the contents of a file.
|
grep |
Search for text in files.
|
chmod |
Change file permissions.
|
sudo <command> |
Execute a command with superuser privileges.
|
ps |
List running processes.
|
top |
Display dynamic system statistics.
|
df |
Display disk space usage.
|
du |
Display directory space usage.
|
git status |
Display the status of the working directory.
|
git init |
Initialize a new Git repository.
|
git clone <repo-url> |
Clone a remote repository.
|
git add |
Stage changes for commit.
|
git commit |
Commit changes to the repository.
|
git log |
Show commit history.
|
git pull |
Fetch and merge changes from a remote repository.
|
git push |
Push local changes to a remote repository.
|
git branch |
List branches in the repository.
|
git checkout <branch> |
Switch to a different branch.
|
git merge |
Merge changes from one branch into another.
|
lua |
Start the Lua interpreter in the terminal.
|
love |
Run a Love2D game/application.
|
love mygame to run a Love2D game located in the "mygame" directory.
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.