Linux CLI-tryhackme -🐧 Linux Basic Commands

Linux CLI-tryhackme -🐧 Linux Basic Commands

Agar aap Linux ya Ethical Hacking start kar rahe ho, to ye basic commands aapko zarur aani chahiye. Ye commands aapko system navigate karne aur files manage karne me help karti hain.

πŸ“Œ Important Linux Commands

πŸ“ 1. Current Location Check (PWD)

πŸ‘‰ Command:

me help karti hain.

pwd

πŸ‘‰ Ye batata hai ki aap current system me kis directory me ho.


πŸ“‚ 2. List Files (LS)

πŸ‘‰ Command:

ls

πŸ‘‰ Current directory me available files aur folders show karta hai.


πŸ“„ 3. Detailed List (LS -L)

πŸ‘‰ Command:

ls -l

πŸ‘‰ Files ka detail info deta hai (permissions, size, date).


πŸ” 4. Hidden Files (LS -AL)

πŸ‘‰ Command:

ls -al

πŸ‘‰ Hidden files bhi show karta hai.


πŸ” 5. Change Directory (CD)

πŸ‘‰ Command:

cd folder_name

πŸ‘‰ Directory change karne ke liye use hota hai.


πŸ”Ž 6. Find File (FIND)

πŸ‘‰ Command:

find ~ -name file.txt

πŸ‘‰ System me kisi file ka path find karta hai.


πŸ“– 7. Read File (CAT)

πŸ‘‰ Command:

cat filename.txt

πŸ‘‰ File ke andar ka content show karta hai.


πŸ‘€ 8. Current User (WHOAMI)

πŸ‘‰ Command:

whoami

πŸ‘‰ Batata hai ki aap kis user se login ho.


πŸ’» 9. System Info (UNAME)

πŸ‘‰ Command:

uname -a

πŸ‘‰ System aur kernel ki information deta hai.


πŸ’Ύ 10. Disk Space (DF -H)

πŸ‘‰ Command:

df -h

πŸ‘‰ Disk usage human readable format me show karta hai.


❓ Important Questions & Answers

πŸ‘‰ CLI ka full form kya hai?

βœ” Command Line Interface


πŸ‘‰ mission_brief.txt file ka full path kya hai?

/home/ubuntu/Documents/.research/archive/mission_brief.txt

πŸ‘‰ mission_brief.txt file me kya flag mila?

βœ”Β MISSION-FOUND


πŸ‘‰ whoami command ka output kya hai?

βœ” ubuntu


πŸ‘‰ uname -a se kernel version kya mila?

βœ” 6.14.0-1018-aws


πŸ‘‰ df -h me free disk space kitna hai?

βœ” 58G


πŸ‘‰ day1_report.txt me kya message hai?

βœ”Β END-OF-DAY1


🎯 Conclusion

Linux commands seekhna cyber security aur ethical hacking ka first step hai. Agar aap beginner ho, to in commands ko daily practice karo.


Leave a Comment

Your email address will not be published. Required fields are marked *