Learn Linux Basics in 1 Hour !!!

Learn Linux Basics in 1 Hour !!!




i have already wrote an article for beginners before?, check that first?

Most people feel nervous or uncomfortable when they hear about using Linux. Many believe only programmers or coders can use it, but that’s just a myth. In reality, over 90% of cloud servers run on Linux as their main operating system.

There isn’t one “main” Linux system that everyone uses. Instead, people choose different types of Linux based on their needs. For example, beginners often start with Ubuntu or CentOS, while those focused on security might go for Kali Linux.


WHO AM I???

Hey, I’m Satyam, a cybersecurity researcher and content creator. I’ve always been curious about how systems work and how to protect them. Over the years, I’ve worked on different cybersecurity projects, set up honeypots, and helped others learn about security…….

As i have crossed 1k followers on medium?, so to celebrate this milestone i am offering discount on my hand written notes?, dumps(notion access) and other resources + guide

so be quick and get a copy of notes for you?:) further check the section at the end?……. oh yeah the article continue here?:)


Linux has many commands, and it’s impossible to cover them all in one blog. Here, we’ll go over some of the most important and frequently used beginner to intermediate commands…. as i have already covered an article before you can check that below?:-

Essential Linux Commands Every Beginner Must Know After Setting Up Your Lab NOTE- This is Only for someone who just started or going to start learning the basics of LINUXosintteam.blog


Beginner Commands

1. CTRL + ALT +?T

It is not exactly a command but an awesome shortcut. You can open the terminal by using this shortcut instead of using the GUI manual process.

2. Sudo

This word should be known by everyone using Linux. A single operating system can have multiple users who may or may not have permission to do everything but the main user i.e “root” has every privilege in that operating system. So to use root privileges, sudo should be added before any command… eg:-

sudo vi hello.txt        

3. pwd

pwd command is used to know the full path of the present working directory (folder)

4. cd

cd command is used to change the directory. for instance, you are in /user/home and you want to go in a temp folder which is located inside the home, so you will do: cd temp There are some shortcuts in cd to navigate quickly

  • cd?: It directly goes to the home directory of that user
  • cd?..?: It goes one directory up
  • cd-?: It goes to your previous directory

5. ls

It lists all the files and folders that exist in a particular directory. you can use ls -a to show the hidden files as well.

6. touch

It allows you to create an empty file in a particular directory eg:

touch example.txt        

7. mkdir

It allows you to create an empty directory (folder) in a particular directory. eg: mkdir folder1

8. rm and?rmdir

It allows you to remove files and folders respectively. However by using rmdir you can only delete an empty directory, so to make a directory empty you can use rm -r /* where -r stands for recursive.

9. mv

It allows you to move a particular file from one location to another location eg: mv file.txt /[path]

It can be also used for renaming the file mv oldname.txt newname.txt

10. cp

It allows you to copy a particular file from one location to another location eg: cp file.txt /[path]

11. cat

It allows you to see the content of a file in the terminal eg: cat file.txt

12. man

man stands for the manual which is used for getting the uses, function of a particular command. eg: man ls

13. history

history is the command that will get you all the commands that you ran previously on the terminal.

14. echo

It is used to print the string passed as an argument inside quotes. eg: echo “hello world”

15. ping

It is used to check your connectivity status to a particular server. eg: ping google.com

16. ifconfig

It is used to view and change the configuration of network interfaces that are present in your system.

17. wget

It is used to download files from the internet. eg: wget [URL]

18. zip and?unzip

zip is used to compress your file into a zip archive and unzip is used to extract the file from that zip archive.

19. vi

It is a terminal-based text editor that is used to create and edit files. eg: vi hello.txt you can also use vim instead of vi which is an upgraded version of vi

20. clear

It helps you to clear the content from the terminal.

Intermediate Commands

21. chmod

It allows you to change the read (r), write (w), and execute (x) permission of files and directories.

22. useradd

It allows you to add a new user.

useradd tejas        

23. passwd

It allows you to create or change the password for a particular user. eg:

passwd tejas        

24. jobs

It allows you to see all the jobs or the process which are currently running started by the shell.

25. kill

It allows you to kill or stop a current process by using its PID or process ID.

26. alias

It is a very useful command in case of very long commands. you can create an alternate name for the command and use the alternate name to run that command. eg: alias pri=’cat hello.txt’

27. df

It allows you to keep track of the disk usage in the system.

28. |

piping?—?A form of stream redirection whereby the output of a command is used as an input the other command eg: ls -l | less

29. export

It is used to set an environment variable and use that variable in a particular terminal. eg: export name=”hello world”

30. fg

It allows you to send a job to the foreground.

31. grep

grep is one of the most used commands by Linux admins. It is used to search for a string of characters in a specified file. It can also be used with a combination of other commands. eg: grep hello file.txt

32. scp

It makes it very simple to copy files between hosts on a network securely using SSH without any external program. eg: scp user@hostname1:file1 user@hostname2:path

33. ssh

SSH is not a new concept, it’s been used everywhere. It is used for logging in to a remote machine. It provides encrypted communication between the hosts. eg: ssh user@ip

34. w

It is the smallest command in length but plays a very important role in Linux. This command is used to show who is logged on in the system and what process they are currently running.Lets C

35. init?0

It is used to shut down the Linux system..

I am using Linux daily to Up my productivity?—?so up yours!


If you are new and want to start your career in cybersecurity check my previous articles on?;

How to Actually Learn Hacking in 2024–25?: A Practical Guide Author- Satyam Pathaniainfosecwriteups.com

Self-Study SOC Analyst Road-Map osintteam.blog

Best Books for Beginners?: Breaking into Cybersec 2024–25 Start your hacking journey with these must-read books?—?because Google won’t always save you! ??osintteam.blog

Top Websites to Learn Hacking and Compete in Capture the Flag (CTF) Hi i m Satyam?, a cybersecurity passionate and content writer?.. I love writing about Tech, Cybersecurity and framing…infosecwriteups.com

How to Set Up Your Hacking Machine?—?Complete Beginner Edition Well hello there?, Hi i m Satyam?, a cybersecurity passionate and content writer?.. I love writing about Tech…infosecwriteups.com


Bonus?:-

Visit my Buy Me a Coffee shop and grab my clear, handwritten Linux commands guide. NOTE?—?These are free for members but For others who are not members yet for a limited time, use code LINUX69 to get a huge 69% off the $3.99 price. Act fast?—?this discount is for the first 100 buyers only!

Plus, you can purchase my other resources, notes, and guides at a discount just by visiting my website. Thank you for your support!

?? Shop Now on Buy Me a Coffee!

IF you prefer gumroad then check this

Gumroad?—?https://satyampathania.gumroad.com/l/extras


? Enjoyed this?article?

If you found this helpful and want to support my work, feel free to buy me a coffee! Your support will help me get hardware devices, which I’ll use to create more hands-on cybersecurity content and share my experiences with you all.

Buy me a coffee here!

Prefer PayPal? You can support my work and help me keep creating by sending your contribution directly via PayPal!

Got questions or need help? Just give me a shout. Happy hacking!

Hacking skills are like virginity?—?once you lose them, you can never get them back! ~ Satyam Pathania

Follow me on?: TWITTER



Sourav Mishra

Building digital products, brands and experience. ?? Nextjs Developer??Google Developer Group - Jammu ??Towards Greatness ?

3 个月

Keep it going ??

要查看或添加评论,请登录

Satyam Pathania的更多文章

社区洞察

其他会员也浏览了