Trzynaste_21

 0    21 Fiche    michalesq
басу ойын өзіңді тексер
 
сұрақ - жауап -
How to disable swap space?
оқуды бастаңыз
swapoff /dev/volume_name/swap
How to add swap space to /etc/fstab?
оқуды бастаңыз
/dev/vgname/swap swap swap 0 1
How to display swap devices
оқуды бастаңыз
swapon -s // cat /proc/swaps
How to install samba client as well as cifs and nfs utils?
оқуды бастаңыз
sudo yum install samba samba-client samba-common cifs-utils
How to point samba client to samba server?
оқуды бастаңыз
smbclient -L <ip address of the samba server>, type password
How to mount CISF - not persistent?
оқуды бастаңыз
mount -t cifs -o username=<username> //<server ip address/share_name /mnt/sambashare
How to mount NFS - not persistent?
оқуды бастаңыз
mount -t nfs <server IP>:/nfsshare /mnt/nfsshare
How to add CIFS mount to /etc/fstab?
оқуды бастаңыз
//<IP server>/<sharename> /mnt/sambashare cifs username=<unsername>,password=123456 0 0
How to add NFS mount to /etc/fstab?
оқуды бастаңыз
<IP server>:/nfsshare /mnt/nfsshare nfs defaults 0 0
How to extend a virtual group for LVM?
оқуды бастаңыз
vgextend <vgname> /dev/xvdg
How to move content of physical volume to extents from the same virtual group?
оқуды бастаңыз
pvmove /dev/xvdf1
How to remove /dev/xvdf1 from the volume group?
оқуды бастаңыз
vgreduce <vgname> /dev/xvdf1
How to extend logical volume to 5G?
оқуды бастаңыз
lvextend -L 5G /dev/vgname/lvname
How to extend logical volume by 5G?
оқуды бастаңыз
lvextend -L +5G /dev/battlestar/galactica
How to let Kernel know about extension of logical volume (XFS partition type)?
оқуды бастаңыз
xfs_growfs /mnt/myvolume
How to let Kernel know about extension of logical volume (EXT4 partition type)?
оқуды бастаңыз
resize2fs /mnt/myvolume
What file systems support ACLs?
оқуды бастаңыз
XFS, EXT4
Why do you need ACLs?
оқуды бастаңыз
ACLs give an access to files and directories for users not included in user groups
How to check extended rights for the file?
оқуды бастаңыз
getfacl file1
How to set extended rights for the file to the user?
оқуды бастаңыз
setfacl -m u:<username>: rw file1
How to set extended rights for the file to the group?
оқуды бастаңыз
setfacl -m g:<groupname>: rw file1

Пікір қалдыру үшін жүйеге кіру керек.