DEV Community

BotirovSamandar
BotirovSamandar

Posted on

day 3

ls

joriy papkadagi barcha narsalarni chop etadi
-a tanlovi orqali yashirin fayl va papkalar ham chop etiladi
Enter fullscreen mode Exit fullscreen mode

pwd (print working directory)

joriy papka manzilini chop etadi
~ manzili $HOME mazilga teng
Enter fullscreen mode Exit fullscreen mode

cd (current directory)

joriy papkani o'zgartiradi, ya'ni sizni boshqa manzilga olib boradi
Enter fullscreen mode Exit fullscreen mode

a. ~ # cd Documents
b. Documents # cd ~
a. komanda orqali Documents papkasiga o'tiladi.
b. komanda orqali $HOMEga qaytiladi

cd .. komandasi orqali bita papka ortga qaytiladi
Enter fullscreen mode Exit fullscreen mode

echo

berilgan qo'shtirnoq "" yoki bir tirnoq '' ichidagi tekstni terminalga chop etadi
Enter fullscreen mode Exit fullscreen mode

echo 'Lyuboy tekstni chop etadi'
echo "Qo'shitirnoq ham ishlaydi"
echo qoshtirnoqSIZ ham ishlaydi

mkdir

berilgan manzilda papka yaratadi
Enter fullscreen mode Exit fullscreen mode

mkdir Test

Joriy papka ichida Test degan papka yaratadi. Agar papka mavjud bo'lsa, error beradi.
Enter fullscreen mode Exit fullscreen mode

rm (remove)

berilgan papka yoki faylni o'chiradi. ! Bu kommanda orqali o'chirilgan fayl va papkalar Korzinkaga tushmaydi.
-r(recursive) tanlovi orqaligini bo'sh papkalarni o'chirsa bo'ladi
-f(force) tanlovi orqali o'chmayotgan fayl yoki papka majburlab o'chiriladi
Enter fullscreen mode Exit fullscreen mode

cat

berilgan tekst fayl ichidagi kontentini terminalga chop etadi
Enter fullscreen mode Exit fullscreen mode

?

Top comments (0)