Day12: Linux, Git & GitHub Cheat-Sheet
Shaikh Soheb
Senior Boomi Developer | GitHub, Generative AI | Aws Cloud and DevOps Enthusiast
Basic Linux Commands with Examples
In this Linux cheat sheet, we will cover all the most important Linux commands, from the basics to the advanced. We will also provide some tips on how to practice and learn Linux commands. This cheat sheet is useful for Beginners and Experience professionals.
1. File and Directory Operations Commands
File and directory operations are fundamental in working with the Linux operating system. Here are some commonly used File and Directory Operations commands:
ls :List files and directories.
cd : Change directory.?
pwdPrint current working directory.?
mkdirCreate a new directory.?
rmRemove files and directories.
cp : Copy files and directories.
mv : Move/rename files and directories.?
touch : Create an empty file or update file timestamps.?
catView the contents of a file.?
head? :Display the first few lines of a file.
tail : Display the last few lines of a file.
ln : Create links between files.
find : Search for files and directories.
2. File Permission Commands
File permissions on Linux and Unix systems control access to files and directories. There are three basic permissions: read, write, and execute. Each permission can be granted or denied to three different categories of users: the owner of the file, the members of the file’s group, and everyone else.
Here are some file permission commands:
chmod: Change file permissions.
chown : Change file ownership.?
chgrp : Change group ownership.?
umask?: Set default file permissions.?
Git & GitHub commands