Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet73/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   69   70   71   72   73   74   75   76   ...   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)

[
 46 
]
Figure 2.4: The home directory for the user dscully still exists, even though we removed the user
With the 
/home
 directory for 
dscully
 still existing, we're able to move the contents of 
this directory anywhere we would like to. If we had a directory called 
/store/file_
archive
, for example, we could easily move the files there:
sudo mv /home/dscully /store/file_archive
Of course, it's up to you to create the directory where your long-term storage will 
ultimately be, but you get the idea.
If you weren't already aware, you can create a new directory with the 
mkdir
 
command. You can create a directory within any other directory that your logged-in 
user has access to. The following command will create the 
file_archive
 directory I 
mentioned in the preceding example:
sudo mkdir -p /store/file_archive
If you do actually want to remove a user's home directory at the same time that you 
remove an account, just add the 
-r
 option. This will eliminate the user and 
their data in one shot:
sudo userdel -r dscully
To remove the 
/home
 directory for the user after the account was already removed (if 
you didn't use the 
-r
 parameter the first time), use the 
rm -r
 command to get rid of 
it, as you would any other directory:
sudo rm -r /home/dscully
The 
-p
 flag simply creates the parent directory if it didn't already 
exist.


Chapter 2

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   69   70   71   72   73   74   75   76   ...   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