随笔分类 -  Linux

摘要:安装命令 sudo apt install mariadb-server mariadb-client 启动MariaDB systemctl start mariadb 设置开机启动 systemctl enable mariadb MariaDB的相关简单配置(root用户下) mysql_se 阅读全文
posted @ 2021-12-06 22:36 丁帅帅dss 阅读(225) 评论(0) 推荐(0)
摘要:1.变量 #!/bin/bash #案例1:定义变量A A=100 #输出变量需要加上$ echo A=$A echo "A=$A" #案例2:撤销变量A unset A echo "A=$A" #案例3:声明静态的变量B=2,不能unset readonly B=2 echo "B=$B" #un 阅读全文
posted @ 2021-11-06 23:21 丁帅帅dss 阅读(68) 评论(0) 推荐(0)
摘要:vim ~/.vimrc " " "" DesCRiption: 适合自己使用的vimrc文件,for Linux/Windows, GUI/Console " "" syntax on "自动语法高亮 "winpos 5 5 " 设定窗口位置 "set lines=40 columns=155 " 阅读全文
posted @ 2021-11-04 16:07 丁帅帅dss 阅读(54) 评论(0) 推荐(0)
摘要:1.安装git sudo apt-get install git yum -y install git 2.安装zsh sudo apt-get install zsh yum -y install zsh 3.安装ohmyzsh sh -c "$(wget -O- https://gitee.co 阅读全文
posted @ 2021-11-02 23:22 丁帅帅dss 阅读(178) 评论(0) 推荐(0)
摘要:1. 更新 -sudo apt-get update 2. 安装 sudo apt install build-essential 3. 查看版本 gcc --version 阅读全文
posted @ 2021-11-01 21:32 丁帅帅dss 阅读(119) 评论(0) 推荐(0)
摘要:切换阿里源 sudo vim /etc/apt/sources.list 加上 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun 阅读全文
posted @ 2021-10-26 20:27 丁帅帅dss 阅读(40) 评论(0) 推荐(0)
摘要:1.检测gcc环境 gcc --version 没有的话,安装 yum install centos-release-scl scl-utils-build yum install -y devtoolset-8-toolchain scl enable devtoolset-8 bash Redi 阅读全文
posted @ 2021-10-21 17:04 丁帅帅dss 阅读(40) 评论(0) 推荐(0)
摘要:三种模式 一般模式 vim xxx 进入的界面就是 编辑模式 在一般模式下按i进入编辑模式 按esc回到一般模式 命令模式,在一般模式下按:或/进入命令模式,按esc回到一般模式,在编辑模式下先按esc在按:回到命令模式 快捷键练习 一般模式下 拷贝当前行 yy 按 p 粘贴,拷贝当前行向下的5行 阅读全文
posted @ 2021-10-12 23:09 丁帅帅dss 阅读(52) 评论(0) 推荐(0)
摘要:C:\Users\###\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs ###是你的用户名 阅读全文
posted @ 2021-10-06 22:30 丁帅帅dss 阅读(94) 评论(0) 推荐(0)
摘要:管理员模式下打开powershell,运行 wsl --install 重启,微软应用商店安装Ubuntu 然后打开设置用户名,密码 如果su命令不能切换root 提示su: Authentication failure, 只要你sudo passwd root过一次之后,下次再su的时候只要输入密 阅读全文
posted @ 2021-10-05 19:19 丁帅帅dss 阅读(63) 评论(0) 推荐(0)
摘要:微软应用商店直接搜terminal安装就行了 无法打开商店的话就把链接复制在https://store.rg-adguard.net/上搜索 安装这样后缀的 然后就行了 美化 打开设置 打开json 复制我配置 { "$schema": "https://aka.ms/terminal-profil 阅读全文
posted @ 2021-10-04 22:10 丁帅帅dss 阅读(415) 评论(0) 推荐(0)
摘要:Linux常用命令 1.目录命令 cd aa 切换到aa目录 cd .. 切换到上一层目录 cd / 切换到系统根目录 cd ~ 切换到用户主目录 cd - 切换到上一次所在目录 ls 列出目录 ls -a 连同隐藏文件全部列出 ls -l (ll) 详细显示 pwd 显示当前目录 mkdir ap 阅读全文
posted @ 2021-07-29 23:37 丁帅帅dss 阅读(57) 评论(0) 推荐(0)
摘要:VMware中安装Mac OS后屏幕分辨率只有1024x768,即便在安装vmtools后也不能调整分辨率,其实vmtools提供了更改分辨率的命令行工具 在终端中执行: 1 /Library/Application\ Support/VMware\ Tools/vmware-resolutionS 阅读全文
posted @ 2021-02-02 19:18 丁帅帅dss 阅读(1157) 评论(0) 推荐(0)
摘要:1.安装VMware tools 菜单栏上虚拟机中有 2.解压 3.打开复制下这个文件名 4.在终端打开 5.输入sudo perl 和刚才复制的文件名,后点回车 6.输入密码后回车 7.输入yes,然后一直点回车就好了 阅读全文
posted @ 2021-02-02 10:42 丁帅帅dss 阅读(445) 评论(0) 推荐(0)