Supprimer Rendre public Rendre privé Add tags Delete tags
  Ajouter un tag   Annuler
  Supprimer le tag   Annuler
  • • DevOps notes •
  •  
  • Tags
  • Connexion

Computer Storage / Disk Partition/shaare/aqHzuQ

  • linux
  • linux

Computer Storage

  • Local → RAM / HDD / SSD

  • DAS (Direct Attached Storage)

    • USB HDD / DVD
  • SAN (Storage Area Network)

    • through iSCSI cable or fiber cable
    • PCI SAN cards / HBA cards
  • NAS (Network Attached Storage)

    • through network (TCP/IP) Samba, NFS

Disk Partition

  • df → disk info

  • fdisk → total & partition

  • fdisk -l → get info about partition

  • fdisk /etc/sdb → mount partition

    • n → new partition
    • w → write
  • mkfs.xfs /dev/sdb1

    • create file system
  • mkdir /data → create folder to mount partition

  • mount /dev/sdb1 /data

    • mount disk
  • nano /etc/fstab

    • mount new disk at startup
/dev/sdb1    /data    xfs    defaults    0    0
  • unmount /data

    • unmount disk
  • mount -a → read fstab and remount disk

4 months ago Permalien
cluster icon
  • Ldap Secure Ssh : Check on listening port netstat -tunlp → check open/listening port Securing SSH config more /etc/ssh/sshd_config change port 22 PermitRootLogin ...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...
  • Special Permissions (SetUID, SetGID, Sticky Bit) : chmod u+s xyz.sh → add SetUID (user-level special permission) chmod g+s xyz.sh → add SetGID (group-level special permission) chmod u-s xyz.sh → remov...
  • Navigating File System / Linux filetypes : ls -l → List pwd → Print working directory dr-xr-xr-x | directories -rw-r--r-- | file Linux File Types Symbol Type - Regular file d Dire...
  • Linux File Ownership, ACLs, and I/O Redirects : File Ownership chown → Change ownership chgrp → Change group Access Control List (ACL) setfacl → Set file ACL getfacl → Get file ACL Add Permissi...


(110)
Filtrer par liens sans tag
Replier Replier tout Déplier Déplier tout Êtes-vous sûr de vouloir supprimer ce lien ? Êtes-vous sûr de vouloir supprimer ce tag ? Le gestionnaire de marque-pages personnel, minimaliste, et sans base de données par la communauté Shaarli