123456789101112131415$ opensslOpenSSl> genrsa -out private_key.pem 2048Generating RSA private key, 2048 bit long modulus....................+++..................................
1、更新已安装的软件123sudo apt-get updatesudo apt-get upgrade -ysudo apt-get dist-upgrade
2、移除不需要的软件1sudo apt-get autoremove
3、安装更新管理1sudo apt-get install update-manager-core
4、开始更新系统1su...
Check current shell:
123# echo $SHELL/bin/sh
Change shell to /bin/bash:
1# usermod -s /bin/bash <username>
If you want find the characters “hello,world!” in the current folder. you can do:
1grep -rn "hello,world!" *
12345* current folder,or some folder name-r recursion to f...
Operations
Description
-X
appoint HTTP request method, like POST, GET
-H
appoint request header, for example Content-type:application/json
-d
appoint request data
–...
In Ubuntu use Cron and Crontab to Run Schedule Tasks
Open/Close/Restart Cron in UbuntuConfig file usurally is /etc/init.d/cron
Start:
1sudo /etc/init.d/cron start
Close:
1sudo ...
What are useful CLI tools for Linux system admins
System administrators (sysadmins) are responsible for day-to-day operations of production systems and services. One of the crit...
Set mysql in python34 virtualenv
Normally if you install mysql in ubuntu python34 virtualenv, use
sudo apt-get install mysqlclient
so it’s better use the follow install
sudo a...
Command List for View Linux System Information
系统
# uname -a #查看内核/操作系统/CPU信息
# head -n 1 /etc/issue #查看操作系统版本
# cat /proc/cpuinfo #查看cpu信息...
How to set lightness in Ubuntu14.04
Open the folder.
sudo vim /etc/default/grub
Change the following code
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
To
...