chown owner file
chgrp group file
chown owner:group file
語言代碼_國家代碼.編碼git
通常經過設置用戶的~/.login_conf或用戶shell的啓動文件(~/.profile,~/.bashrc,~/.cshrc),設置以下兩個變量shell
配置中文vim
locale LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.UTF-8" LC_COLLATE="zh_CN.UTF-8" LC_TIME="zh_CN.UTF-8" LC_NUMERIC="zh_CN.UTF-8" LC_MONETARY="zh_CN.UTF-8" LC_MESSAGES="zh_CN.UTF-8" LC_ALL=zh_CN.UTF-8
freebsd-update -r 12.0-RELEASE upgrade freebsd-update install freebsd-version
兩種安裝方式分別爲FreeBSD Ports套件(源碼安裝)和packages(二進制安裝)bash
更新portsssh
#自動查找mirrors,下載並解壓ports包到/usr/ports portsnap fetch extract #後續更新ports tree,無需extract portsnap fetch update
若知道port的準確名字,但須要知道在哪一個類別找到,使用指令whereisfetch
# whereis git /usr/ports/devel/git
使用ports collection內嵌搜索機制。首先到/usr/ports,運行make search name=program-name編碼
# cd /usr/ports # make search name=lsof
安裝
以vim爲例code
# cd /usr/ports/editors/vim # make install clean
安裝pkg
在shell中執行pkg,而後選擇y便可ip
# pkg > y
軟件安裝ci
# pkg install vim
軟件卸載
# pkg delete vim
軟件更新
# pkg update # pkg upgrade
報錯
Bad SSH2 cipher spec 'aes192-ctr,aes256-ctr,aes128-cbc,aes192-cbc,aes256-cbc ...'
查看ssh使用了哪些ciphers
$ ssh -Q cipher
打開/etc/ssh/sshd_config,替換Ciphers那一行便可