Hey everyone👋! I am finally BACK with another Linux🐧 thread!
In today's thread🧵, I will be going over basics commands every Linux user should know !
A Mega🧵 thread
Have grouped these commands so you can easily Identify their usage.
- Linux Manual/Help Commands
- Linux File Commands
- Linux Directory Commands
- Linux File Content Commands
- Linux User Commands
- Linux Filter Commands
- Linux Utility Commands
- Linux Networking Commands
Pro tip💡: There is no need to memorize all the commands options/arguments, just make use of the help menu or manual pages to find the usage of a specific command/option you want.
Simple Bash/ZSH GOD-LIKE History Tricks Every Linux User Should Know!
A thread 🧵
Hello everyone👋. For today's Linux thread🐧, I'll be showing some GOD-LIKE bash/zsh history tricks which will save you plenty of time⏰ and doing your day to day tasks on the Linux terminal.
Effectively using bash history will save you plenty of time in the Linux terminal. Not only this will save you plenty of time, but it will also make your life much easier when you are using the Linux Terminal to perfom day to day tasks as regular user, penterser, dev or sysadmin.
1⃣View the Bash History
The simplest way to view commands you have used earlier is to use the history bash built in command.
Ifconfig stands for Interface Configurator, it is one of the most used commands for finding network details, nitialize an interface, assign IP address, enable or disable an interface. It also display route and network interface.
ip command is the latest version of ifconfig. It is more powerful than ifconfig command as it can perform several other tasks that the ifconfig cannot do. The utility is used for displaying and manipulating routing, network devices, interfaces.
In this thread🧵, I will be discussing how you can pop a root shell by abusing SUDO rights misconfiguration and will be demonstrating this using this box: tryhackme.com/room/linuxpriv…
First things first, let’s start with theoretical concepts!!😄
What is SUDO👑?
Sudo (Superuser Do) - is a Unix and Linux based utility that gives users permissions to run commands at the `root` level (most powerful user).
1. Recursive Deletion🔁🗑️
This is one of the most dangerous commands. Once this command is run, it deletes all the content of the root directory forcefully and recursively. Thus, all your directories and subdirectories will be deleted and the data will be lost.
2. Fork Bomb🍴💣
My personal best😄,this is a simple bash recursive function which once executed creates copies of itself which in turn creates another set of copies of itself. This consumes the CPU time and memory. Thus, it runs recursively until the system freezes.
Recommended Books to Learn and Master Linux [For Beginners to Advanced Linux Users]📚
Linux plays an incredibly important part in the job of a #cybersecurity professional, #hacker or #pentester.
/ A thread 🧵👇
If you are planning on working as a cybersecurity professional, you'll definitely need an excellent working knowledge of the Linux operating system. Below is a curated list of books to master #linux.
1) Linux Command Line and Shell Scripting Bible, 3rd Edition📜
My personal favourite. Linux Command Line and Shell Scripting Bible is a reference book written by Richard Blum. The book includes detailed instructions and abundant examples.
#Learn 🧠🐍#python: Sometimes when programming in python they're situations when you want to copy the contents of an existing list into another. Python has several ways of achieving that. In this thread you will learn different ways of achieving that with the help of examples.
1) Using the equal (=) sign operator:
Using = operator you can copy the contents of an existing list onto another/new list. But there's a problem with this method which I will explain on the next section.
The problem with the above method is that if you modify the new copied_fruits list the original list (fruits) is modified too, this is because the copied list (copied_fruits) is referencing/ pointing to same fruits list in memory.