Linux tutorial: 1 How to allocate space to directory in linux?

How to allocate space to directory in linux let's look in a details


Step 1 :  View space CMD: df -h

allocate space to directory in linux


allocate space to directory in linux

CMD: sudo nano /etc/mtab

add following line

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0

save ctl+o and ctrl+x (exit)

and another file

CMD: sudo nano /etc/fstab

Copy this line

tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=512M 0 0

save ctl+o and ctrl+x (exit)


CMD: mount /tmp

CMD: rebot   //for permanent allocate space to tmp folder

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...