Skip to content

Instantly share code, notes, and snippets.

@aisuhua
Last active October 23, 2019 06:22
Show Gist options
  • Select an option

  • Save aisuhua/97b9da5ea684b1df64f644d5c5caa849 to your computer and use it in GitHub Desktop.

Select an option

Save aisuhua/97b9da5ea684b1df64f644d5c5caa849 to your computer and use it in GitHub Desktop.

vim

# /etc/vim/vimrc.local
set tabstop=4

alias

alias
alias ssh1='ssh root@192.168.1.1'
unalias ssh1

useradd

useradd -m -s /bin/bash suhua
passwd suhua
userdel -r suhua

nfs

apt-get install nfs-common
showmount -e 192.168.1.2
sudo mount -t nfs 192.168.1.2:/volume1/homes /mnt/ds218

# /etc/fstab
192.168.1.2:/volume1/homes /mnt/ds218 nfs nolock 0 0

network

ifconfig eth0 up
ifconfig eth0 down

fstab

blkid

# /etc/fstab
UUID=63f8b46d-6e54-4470-90a6-90f39c1e2db3 /mnt/disk1 ext4 defaults 0 0

mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment