DEV Community

Narmuratova
Narmuratova

Posted on • Edited on

terminal komandalar

'pwd'

  • joriy papka manzilini chop etadi
pwd
Enter fullscreen mode Exit fullscreen mode

'clear'

  • terminaldagi hamma tekstni tozalab yuboradi
clear
Enter fullscreen mode Exit fullscreen mode

ls

  • shu papka ichidagi hamma narsani listga chiqarib beradi

ls -a

  • yashirin fayllarni ham chopetadi
ls -a
Enter fullscreen mode Exit fullscreen mode

mkdir

make directory
Enter fullscreen mode Exit fullscreen mode
  • berilgan nomda papka yaratadi

cd (current directory)

  • istalgan papkaga o'tadi

cat

  • berilgan tekst fayl ichidagi kontentni terminalga chop etadi

cd ~

-home papkaga qaytadi

cd . .

  • bitta papka ortga qaytiladi

rm(remove) fayl nomi

  • berilgan faylni o`chiradi

rm -r (recursion)

  • berilgan papkani o`chiradi

date

  • o`sha kungi sanani qayd etadi

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

  • bugungi kun bilan papka yaratadi

echo salom >> salom.txt

  • joriy papkada text fayl ochadi

Top comments (0)