Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet151/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   147   148   149   150   151   152   153   154   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 106 
]
In fact, there are several ways to return home, a few of which are demonstrated in 
the following screenshot:
Figure 4.3: Other ways of navigating to the home directory
The first command, 
cd -
, doesn't actually have anything to do with your home 
directory specifically. It's a neat trick to return you to whatever directory you were 
in most recently. For me, the 
cd –
 command took me to the previous directory I 
was in, which just so happened to be 
/home/jay
. The second command, 
cd /home/
jay
, took me directly to my home directory since I called out the entire path. The last 
command, 
cd ~
, also took me to my home directory. This is because 
~
 is shorthand 
for the full path to your home directory, so you don't really ever have to type out the 
entire path to 
/home/
. You can 
just refer to that path simply as 
~
.
Another essential command is 
ls
. The 
ls
 command lists the contents of the current 
working directory. We probably don't have any contents in our home directory yet. 
But if we navigate to 
/etc
 by running 
cd /etc
, as we did earlier, and then execute 
ls
, we'll see that the 
/etc
 directory has a number of files in it. Go ahead and try it 
yourself and see:
cd /etc
ls
We didn't actually have to change our working directory to 
/etc
 just to list the 
contents. We could've just executed the following command:
ls /etc


Chapter 4

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   147   148   149   150   151   152   153   154   ...   482




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