TERMINAL komandalari | Part 4
Sardorpm
Posted on March 14, 2022
1.
alias
- Bu komanda takroriy ishlatiladigan komandalar uchun #nickname# (taxallus) beradi
-
alias datedir='mkdir $(date "+%d-%m-%Y")'
- ushbu komanda bugungi san bilan papka yaratadigan uzuun komandaga qisqa nom beradi - Endi
datedir
deyish orqali bugungi sana nomi bilan papka yaratsa bo'ladi. -
alias
komandasi bitta terminal session uchun ishlaydi holos
2.
date
- Bu komanda hozirgi vaqtni chop etish uchun ishlaydi
-
date
deb yozsa, Mon Mar 14 22:36:59 2022 formatda sanani chop etadi -
date '+%d-%m-%Y'
komandasi sanani chop etishda #dd-mm-yyyy formatda chop etadi. 14-03-2022 -
date '+%d-%m-%Y'
komandasi 14/03/2022 ni chop etadi
💖 💪 🙅 🚩
Sardorpm
Posted on March 14, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.