Command line crash course



Download 309,48 Kb.
Pdf ko'rish
bet14/27
Sana16.03.2023
Hajmi309,48 Kb.
#919742
1   ...   10   11   12   13   14   15   16   17   ...   27
Bog'liq
CommandLine

You Learned This 
You're getting into programmer territory with these commands, but they're 
so handy I have to teach them to you. These commands let you temporarily 
go to a different directory and then come back, easily switching between 
the two. 


COMMAND LINE CRASH COURSE 
36 | 
P a g e
The pushd command takes your current directory and "pushes" it into a list 
for later, then it changes to another directory. It's like saying, "Save where I 
am, then go here." 
The popd command takes the last directory you pushed and "pops" it off, 
taking you back there. 
Finally, on Unix pushd, if you run it by itself with no arguments, will switch 
between your current directory and the last one you pushed. It's an easy 
way to switch between two directories. This does not work in PowerShell. 
Do More 

Use these commands to move around directories all over your 
computer. 

Remove the i/like/icecream directories and make your own, then 
move around in them. 

Explain to yourself the output that pushd and popd print out to you. 
Notice how it works like a stack? 

You already know this, but remember that mkdir -p will make an 
entire path even if all the directories don't exist. That's what I did very 
first for this exercise. 


COMMAND LINE CRASH COURSE 
37 | 
P a g e
Making Empty Files (Touch, New-Item) 
Do This 
cd temp 
$ touch iamcool.txt 
$ ls 
iamcool.txt 

> cd temp 
> New-Item iamcool.txt -type file 
> ls 
Directory: C:\Users\zed\temp 
Mode LastWriteTime Length Name 
---- ------------- ------ ---- 
-a--- 12/17/2011 9:03 AM iamcool.txt 


Download 309,48 Kb.

Do'stlaringiz bilan baham:
1   ...   10   11   12   13   14   15   16   17   ...   27




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish