1).mkdir /mnt/sf_VirtualBox_Share
sudo mount -t vboxsf VirtualBox_Share /mnt/sf_VirtualBox_Share
此时可以在/mnt/sf_VirtualBox_Share查看,是否有共享文件。
若想避免每次开机都要进行挂载操作,请按下面步骤操作:
在/etc/fstab文件最后添加下面一行
VirtualBox_Share /mnt/sf_VirtualBox_Share vboxsf rw,gid=1001,uid=1000,auto 0 0
解挂 sudo umount -f /mnt/sf_VirtualBox_Share
2).in the virtualbox setting, cannot select auto load, otherwise auto load to /media/sf_VirtualBox_Share
1). 安装VMWare tools
sudo pacman -S open-vm-tools
systemctl start vmtoolsd
systemctl enable vmtoolsd
2). systemctl status vmtoolsd 查看VMware Tools状态
关掉虚拟机,设置共享文件夹
vmware-hgfsclient 可查看共享文件夹
sudo mkdir /mnt/hgfs
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o nonempty
成功安装VMWare tools
自动调整大小--->自动适应客户机
虚拟机的分辨率还是不可以保存
[sudo] gedit filename
touch test.txt
grep "xxxxx" * -nR
gcc --version 或者 gcc -v
which gcc
快捷键F4
export CC=/home/workspace/program-files/arago-2017.06/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc
export CXX=/home/workspace/program-files/arago-2017.06/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-g++
cmake .
make
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
/var/lib/pacman/local
#查看提交记录
git log
#在当前目录新建一个Git代码库
git init
#将 文件 添加到缓存
git add 文件
git add . #添加当前项目的所有文件
git status
git status -s #简短输出
#新建一个目录新,将其初始化为Git代码库
git init [project-name]
#下载一个项目和它的整个代码历史
git clone [url]
#列出所有本地分支
git branch
#新建一个分支,指向指定commit
git branch [branch] [commit]
#切换到指定分支,并更新工作区
git checkout [branch-name]
#合并指定分支到当前分支
#git merge [branch]
#删除分支
git branch -d [branch-name]
#显示commit历史,以及每次commit发生变更的文件
git log --stat
#搜索提交历史,根据关键词
git log -S [keyword]
Ctrl + D 退出python的命令行
切換python的版本至2.7(从3.7.1)
sudo cp /usr/bin/python /usr/bin/python_cp
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2.7 /usr/bin/python
列出当前Linux系统上链接的所有磁盘
systemctl enable sshd.service 开机启动
systemctl start sshd.service 立即启动
systemctl restart sshd.service 立即重启
pacman --help
pacman -S vsftpd 安装
pacman -R vsftpd 卸载
sudo pacman -Syu 更新系统和所有的软件
设置时区:sudo ln sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
安装openNTPD:sudo pacman -S openntpd
重启openNTPD:systemctl restart openntpd
设置开机启动:systemctl enable openntpd
journalctl _PID=20373 从日志中筛选出与这个Process ID相关的日志(_PID的值替换为相应的Process ID)
Linux系统加载哪些内核模块,和配置文件有关系。模块保存在/lib/modules/下。
linux系统启动服务: /lib/systemd/system
这个命令在系统关机或重启之前最好多执行几次。
点击manjaro官网(https://www.manjaro.org) 下的Mirrors