$ ssh root@yourIpAdress
nano file.py
-weight: 600;">sudo useradd -m user_name
-weight: 600;">sudo passwd - It gives you granular control over memory and CPU which is important when working with terabytes of data
- Automation. It has crontab which is the Linux scheduler. Here you can script repetitive tasks like moving files or checking logs using Bash
- It is a cloud standard. AWS, Azure and Google Cloud are built on Linux
- It has Security Features - Hardware management
- File system management
- Process management - lscpu - This displays info about the architecture of your CPU
- free -h - This shows how much space is available in your CPU. The -h flag stands for human readable (GB instead of bytes)
- lsblk – Lists all blocked devices attached to the system
- df -h – shows how much disk space is used Vs. what is available on mounted devices - ps aux – Shows a snapshot of every running process on the system
- top or htop – this is the primary command used to understand why your pipeline is slow. It gives you a colourful interactive list of what is running. Its is more like task manager in your windows
- kill<PID> - Stops a hanging process or one that is consuming too many resources using its process ID (PID)
- & - adding this to your script ensures it is running in the background so you can keep usng your terminal ( python3 script.py &)
- Jobs – lists the processes you have running in the background of your current session - chmod – This command changes file permissions to show who can read, write, and execute
- chown – this command changes the ownership of the files or folder
- passwd – allows you to make changes to your password
- whoami – this is a quick way to check which user account you are currently running on
- history – shows a list of recently executed commands - ssh - used to connect to a cloud server
- cd - change directory, move to a directory within the current working directory
- pwd - print current working directory
- mkdir - make a directory/folder
- su - switch user
- whoami - gives you the current user
- ls - list the files and folders in the current directory
- ls -l - list the files and folders in the current directory and include the hidden files
- cat - output the contents of the file in text
- vi - use vim to edit a file
- nano - use nano to edit a file
Usually written as nano file.py to mean open file.py for editing
- -weight: 600;">sudo useradd -m user_name- used to add users
- -weight: 600;">sudo passwd - used to change the administrator's password
- passwd - when entered, it prompts you to give the old password, then asks you to type the new password
- touch - create a file
- man - This is a user manual to search for any command
- -weight: 500;">wget - used to download files online
- head - prints the first 10 rows of a document without opening the whole doc. Useful for large files
- mv - used to move files from one folder to another
- cp - used to copy files from one folder to another. It is also used to rename files
- grep text - grep is used to search for text in a file. grep text will return instances of the word "text" in a document