DEV Community

Mohira21
Mohira21

Posted on

3

Terminal komandalar | Part 2

cd ~

  • home papkaga qaytadi

cd ~/papka nomi

  • har qanday papkadan shu papkaga o'tadi

open . yoki start .

  • file explorerda shu papkani ochadi

mkdir

mkdir papka-nomi yoki mkdir 'papka-nomi'

  • yangi papka ochadi
  • agar papka nomi probel bilan yozilsa alohida-alohida papka ochadi

echo salom >> salom.txt

  • joriy papkada text fayl ochadi

echo "bugun havo yaxshi" >> salom.txt

  • tekstga yangi so'z/gap qo'shiladi

rm (remove)

rm salom.txt

  • har qanday faylni o'chiradi (papkani emas)

rm -r (recursion)

  • har qanday papka va uning ichidagi barcha narsani o'chiradi

rm -rf (force)

  • o'chmayotgan faylni yoki pakani majburlab o'chirib yuborsa bo'ladi ! Bu komanda orqali o'chirilgan fayl va papkalar korzinkaga tushmaydi!

date

  • bu komanda hozirgi vaqtni chop etish uchun ishlatiladi

date

  • Sat Apr 24 10:11:25 + 04 2022 ko'rinishida sanani chop etadi

date '+%d-%m-%Y'

  • sanani dd-mm-yyyy formatda chop etadi 24-0 4-2022

date '+%d/%m/%Y'

  • 24/04/2022 ni chop etadi

mkdir $(date)

  • bugungi sana bilan papka ochadi (faqat sana,oy,yil,... alohida alohida papka bo'lib ochiladi)

mkdir $(date '+%d/%m/%Y')

  • bugungi sana bilan paka yaratadi 24/04/2022 ko'rinishida

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more