shell速查 指定解释器 例如 #!/bin/bash 还可以指定php #!/usr/bin/php 常见的shell解释器有 Bourne Shell(/usr/bin/sh或/bin/sh) Bourne Again Shell(/…
$ sudo chmod 755 /etc/init.d/test $ cd /etc/init.d $ sudo update-rc.d test defaults 95
sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf sudo /etc/init.d/rethinkdb restart
systemctl disable lightdm.service
安装ssh服务 sudo apt-get install openssh-server 查看是否启动 sudo ps -e |grep ssh 如果没有启动 sudo service ssh start
使用dd命令可以完整备份硬盘,并且可以直接用于其他相同硬件的机器 命令 dd if=/dev/sda of=/dev/sdb if是输入数据源(要备份的硬盘),of是输出数据源(备份到硬盘) 可以使用df查看磁盘名 由于是整个磁盘克隆,会很…
查看 linux 运行时间 1.who -b 查看最后一次开机时间 $ who -b 系统引导 2016-08-27 14:03 2.last reboot 查看最近重启记录 $last reboot reboot …
linux 添加环境变量 1.修改文件 /etc/environment 修改后 执行 source /etc/environment 2.修改 ~/.bashrc export PATH=/opt/cat/src:$PATH /opt…
其实已经安装了libtool,但是想要在命令行里使用还得运行下 sudo apt install libtool-bin
1.调出终端 输入 sudo apt-get install gnome-shell 2.安装完毕,注销登陆。在用户名后面点击ubuntu下图标,在下拉列表中选择小脚印标志的gnome图标。然后登陆。
更多...
加载中...