I’ve created a cheat sheet for Linux commands that I don’t know, for when I need them. Apart from adding Linux commands I have added some Basic Python Comands.
Terminal comands
pwd —> Show current folder
ls —> List files and folders
cd folder name —> Enter into a folder
cd .. —> Upload a folder back
mkdir directori name —> Create new folder
rm file name —> Clear a file
rmdir folder name —> Delete an empty folder
cp source destination —> Copy files or folders
my origin fate —> Move or rename files
cat file name —> Show the content of a file
touch file name —> Create an empty file
clear —> Cleaning the screen
sudo commando —> Run with administrator permits
man command —> Show the manual of a commando
ping web.com —> Check connection with a server
top / htop —> Show active processes
Git commands (to control the version)
git init —> Starts a new repository
git status —> Show the status of changes
git add. —> Add files for the switch
git commit – m “message” —> Save changes with a message
git log —> Displays the history of commits
git push —> Send changes to remote repository
git pull —> Download remote repository changes
git clone url —> Download a GitHub project
Basic Python Comands
print(“text”) —> Show text on screen
variable = value —> Declares a variable
input(“message”) —> Request entry to the user
if condition: —> A condition begins
else: —> Alternative of the condition
for and in range (n): —> Loop with a given number
while condition: —> Loop while the condition is met
def function(): —> Declare a function
python file.py —> Run a Python file
exit() —> Exit the Python terminal
Useful development environment commands
code. —> Open the actual carpet a VS code
exit —> Exit from terminal
clear —> Cleaning terminal screen
history —> Show commando history

Deixa un comentari