apt update
tac ~/.bash_history | awk '!seen[$0]++' | tac > ~/.bash_history.new
mv ~/.bash_history.new ~/.bash_history
smb命令
apt install samba
smbpasswd -a root
systemctl enable smbd
systemctl start smbd
systemctl stop smbd
apt update
tac ~/.bash_history | awk '!seen[$0]++' | tac > ~/.bash_history.new
mv ~/.bash_history.new ~/.bash_history
apt install samba
smbpasswd -a root
systemctl enable smbd
systemctl start smbd
systemctl stop smbd