Ubuntu 常用配置文件

  • svn
sudo nano /etc/apache2/mods-available/dav_svn.conf
sudo systemctl restart apache2.service
  • smb
sudo nano /etc/samba/smb.conf
sudo service smbd restart
  • 扩展硬盘
sudo nano /etc/fstab
  • nano 编辑操作
    • Ctrl + V 翻到下一页
    • Ctrl + K 删除一行
    • Ctrl + O 保存修改
    • Ctrl + X 退出
    • Ctrl + W 搜索字符
  • dpkg 命令
# install .deb file
sudo dpkg -i mysql-connector-j_8.0.33-1ubuntu20.04_all.deb
# check where .deb is installed
dpkg -L mysql-connector-j
# remove .deb
dpkg -P mysql-connector-j
  • mysql 命令
# login mysql with root name and password
sudo mysql -u root -p 
# delete database `mydb`
drop database mydb;
# delete user
drop user 'user1'@'localhost'
# check mysql version
select version();
posted @ 2024-05-06 11:23  opencoder  阅读(4)  评论(0编辑  收藏  举报