### Linux ``` cat /etc/*-release #查看系统版本 ``` #### Ubuntu 修改中国源 ``` sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list ``` [Ubuntu 16.04 Usage Wiki](https://porthos.tecnico.ulisboa.pt/mediawiki/index.php/Ubuntu_16.04) [Install Gnome Desktop on Ubuntu](https://wiki.ubuntu.com/XenialXerus/ReleaseNotes/UbuntuGNOME) [怎样升级Ubuntu](https://www.howtogeek.com/351360/how-to-upgrade-to-the-latest-version-of-ubuntu/) [sudo和su的区别](https://xie.infoq.cn/article/d538ef4cfe6eb60a1714aacc9) [Ubuntu add sudo user](http://topspeedsnail.com/ubuntu-add-sudo-user/) [配置Ubuntu 使用密钥ssh登陆](http://www.cnblogs.com/bashenandi/p/linux-aliyun-ecs-ssh.html) [监控ubuntu启动速度](https://yq.aliyun.com/wenji/99167) [宝塔面板的安装](https://www.bt.cn/bbs/thread-2782-1-1.html) [[Setup Samba on Ubuntu]] [[Switch between GDM and LightDM]] [List which process is listening upon a port](https://debian-administration.org/article/184/How_to_find_out_which_process_is_listening_upon_a_port) [Install EMACS 26.1 on Ubuntu by Building](https://www.admintome.com/blog/install-emacs-26-1-on-ubuntu/) [怎样在ubuntu上安装precompiled的llvm+clang binaries](https://stackoverflow.com/questions/17045954/how-to-install-clang-using-precompiled-binaries) #### Debian [Install VirtualBox guest additions in Debian 10](https://www.pragmaticlinux.com/2020/07/install-virtualbox-guest-additions-in-debian-10/) [docker 容器内 apt-get update E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13)](https://www.jianshu.com/p/36beca7076a8) #### CentOS [How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7) [How To Install WordPress on CentOS 7](https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7) [CentOS 7 yum nginx MySQL PHP 简易环境搭建](http://www.cnblogs.com/evai/p/5991525.html) [cd -bash: 无法为立即文档创建临时文件: 设备上没有空间;磁盘爆满;inode爆满;](https://blog.csdn.net/HenryMrZ/article/details/88386007) #### Gentoo [Gentoo 安装教程](https://bitbili.net/gentoo-linux-installation-and-usage-tutorial.html#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C) [2020-Gentoo双系统安装指北](https://zhuanlan.zhihu.com/p/166652475) [Gentoo Knowledge Base:Unmasking a package](https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package) [Gentoo中如何安装不稳定的软件包](https://www.xitongjiaocheng.com/linux/2013/4557.html#:~:text=%E3%80%80%E3%80%80-%20sys-kernel%2Fvanilla-sources-2.6.16.62%20%28masked%20by%3A%20~amd64,keyword%29%20%E3%80%80%E3%80%80%E8%BF%99%E6%98%AF%E7%A8%8B%E5%BA%A6%E6%9C%80%E8%BD%BB%E7%9A%84%EF%BC%8C~amd64%E8%A1%A8%E7%A4%BA%E8%AF%A5%E8%BD%AF%E4%BB%B6%E5%9C%A8amd64%E6%9E%B6%E6%9E%84%E4%B8%8A%E5%B0%9A%E4%B8%8D%E7%A8%B3%E5%AE%9A%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E6%B7%BB%E5%8A%A0%E4%B8%BA%E8%AF%A5%E8%BD%AF%E4%BB%B6%E6%B7%BB%E5%8A%A0~amd64%E5%85%B3%E9%94%AE%E5%AD%97%E6%9D%A5%E5%AE%89%E8%A3%85%EF%BC%9A%20%E3%80%80%E3%80%80%23%20echo%22%3Dsys-kernel%2Fvanilla-sources-2.6.16.62%20~amd64%22%20%3E%3E%2Fetc%2Fportage%2Fpackage.keywords) #### SVN [Subversion版本控制 书籍](http://svnbook.red-bean.com/nightly/zh/svn-book.html) [3分钟练成SVN命令高手:SVN常用命令](https://segmentfault.com/a/1190000014549695?utm_source=index-hottest) [SVN各个操作的解释。](http://www.cnblogs.com/wangs/p/3565985.html) [使用Meld作为SVN的mergetool](https://stackoverflow.com/questions/7252011/how-to-set-up-svn-conflict-resolution-with-meld) [使用git-svn 迁移svn项目的实用tips](http://www.janosgyerik.com/practical-tips-for-using-git-with-large-subversion-repositories/) #### Emacs [[Build emacs on macOS]] [Setting up Emacs daemon on OS X, 使用 Apple Script 可以让 emacs 和 macOS 顺畅继承](https://gist.github.com/redinger/1394910) [Emacs 启动参数](https://www.gnu.org/software/emacs/manual/html_node/emacs/Initial-Options.html) [How to fix Emacs shell command not found](https://stackoverflow.com/questions/4393628/emacs-shell-command-not-found) [How to select text between quotes, brackets… in Emacs?](https://stackoverflow.com/questions/24089946/how-to-select-text-between-quotes-brackets-in-emacs) [Kill all other buffers](https://stackoverflow.com/questions/3417438/close-all-buffers-besides-the-current-one-in-emacs) #### Shell {{ :linux-command-line-cheatsheet.pdf |}} [How to check if a program exists from a Bash script?](https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script) [HOW TO SET A PROXY FOR THE TERMINAL [QUICK LINUX TIP]](http://www.webupd8.org/2010/10/how-to-set-proxy-for-terminal-quick.html) [How can I delete all files with a particular extension in a particular folder?](http://unix.stackexchange.com/questions/42020/how-can-i-delete-all-files-with-a-particular-extension-in-a-particular-folder) [How do I configure a new Ubuntu installation to accept ssh connections?](https://askubuntu.com/questions/51925/how-do-i-configure-a-new-ubuntu-installation-to-accept-ssh-connections) [[SSH 免密码登录]] [[Crontab Usage]] [[Install Flash Plugin on Linux]] [[Pure-FTPd 安装和卸载]] [Sudo Usage](https://help.ubuntu.com/community/RootSudo) [How do you completely purge Apache, MySQL, PHP, and phpMyAdmin on Ubuntu? ](https://serverfault.com/questions/531115/how-do-you-completely-purge-apache-mysql-php-and-phpmyadmin-on-ubuntu) [How to enable or disable services? (Ubuntu Upstart)](https://askubuntu.com/questions/19320/how-to-enable-or-disable-services) [Where is the cron / crontab log?](https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log) [Disable Root ssh login on Ubuntu](https://askubuntu.com/questions/27559/how-do-i-disable-remote-ssh-login-as-root-from-a-server) [Scp copy folder](https://stackoverflow.com/questions/11304895/how-to-copy-a-folder-from-remote-to-local-using-scp) [RSync实现文件备份同步](https://www.jianshu.com/p/e5ecd48439e1) [Rsync 使用详解](http://roclinux.cn/?p=2643) [ls large directory 防止hang住](http://unixetc.co.uk/2012/05/20/large-directory-causes-ls-to-hang/) [批量转换文件编码GBK到UTF](http://m.blog.csdn.net/u011595231/article/details/10213049) [Linux 添加Swap](https://www.echoteen.com/centos-swap.html) [Linux get public ip](https://tecadmin.net/5-commands-to-get-public-ip-using-linux-terminal/) [Uname Command 查看Linux系统信息](https://linoxide.com/linux-command/uname-command/) [centos 查看版本](http://www.cnblogs.com/hitwtx/archive/2012/02/13/2349742.html) [Subshells Guide](http://tldp.org/LDP/abs/html/subshells.html) [Bash - how to run a command after the previous finished? ](https://unix.stackexchange.com/questions/184502/bash-how-to-run-a-command-after-the-previous-finished) [curl auto redirect the 302 response](https://stackoverflow.com/questions/20905210/curl-302-redirect-not-working-command-line) [Linux File Permission](http://www.cnblogs.com/adforce/archive/2013/04/12/3017527.html) [递归改变文件权限](https://www.cyberciti.biz/faq/howto-apply-conditional-recursive-chmod-file-permissions/) [通过shell批量下载文件中链接对应的文件](https://stackoverflow.com/questions/9865866/pipe-output-of-cat-to-curl-to-download-a-list-of-files) [shell中字符串截取命令:cut,printf,awk,sed](https://www.jianshu.com/p/1bbdbf1aa1bd) [use space as a delimiter with cut command](https://stackoverflow.com/questions/816820/use-space-as-a-delimiter-with-cut-command) [Linux下tar.xz结尾的文件的解压方法](https://blog.csdn.net/silvervi/article/details/6325698) [chown 用法](http://www.runoob.com/linux/linux-comm-chown.html) [Ubuntu防火墙 UFW 使用](http://www.cnblogs.com/sxwailyc/archive/2010/07/10/1774909.html) [How to check if running in Cygwin, Mac or Linux?](https://stackoverflow.com/questions/3466166/how-to-check-if-running-in-cygwin-mac-or-linux) #### Screen [Start a named screen session](https://stackoverflow.com/questions/3202111/how-to-assign-name-for-a-screen) [Rename screen session](https://superuser.com/questions/370510/rename-screen-session) #### Make [【*** missing separator. Stop】检查Makefile的格式问题](https://stackoverflow.com/questions/16931770/makefile4-missing-separator-stop) [Get Current Makefile directory](https://stackoverflow.com/questions/18136918/how-to-get-current-relative-directory-of-your-makefile) #### CMake [How to Build a CMake-Based Project](http://preshing.com/20170511/how-to-build-a-cmake-based-project/) [CMake —— The Architecture of Open Source Applications](http://aosabook.org/en/cmake.html) #### Nginx [How To Set Up Nginx with HTTP/2 Support on Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-16-04) [[Setup https with nginx and letsencrypt]] [ssl - Letsencrypt add domain to existing certificate](https://stackoverflow.com/questions/38302401/letsencrypt-add-domain-to-existing-certificate) [Nginx 作为反向代理](http://www.nginx.cn/927.html) [怎样调试nginx作为反向代理时出现的问题](http://tarunlalwani.com/post/how-to-debug-nginx-reverse-proxy-issues-php-fpm-gunicorn-uwsgi/) [使用 Nginx map 指令匹配 User Agent 自定义值](https://segmentfault.com/a/1190000007147437) [Nginx 设置允许跨域](https://blog.csdn.net/weixin_44723434/article/details/97259175) [Nginx static files hosting](https://medium.com/adrixus/beginners-guide-to-nginx-configuration-files-527fcd6d5efd) [nginx 限流,针对server 端口级别](http://nginx.org/en/docs/http/ngx_http_limit_req_module.html) [nginx 限流,针对http conn级别](http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html) [nginx 403 问题排查](https://www.php.cn/nginx/423622.html) #### Regex [正则表达中问号?的用法](http://keimon.iteye.com/blog/1764079) #### Systemd [Systemd服务简介](https://linux.cn/article-3352-3.html) [How to Manage Systemd Services on a Linux System](https://www.howtogeek.com/216454/how-to-manage-systemd-services-on-a-linux-system/) [How to make a Systemd Unit for docker-compose?](https://forums.docker.com/t/how-to-make-a-systemd-unit-for-docker-compose/26199) [Systemd Unit for Gogs](https://github.com/gogits/gogs/blob/master/scripts/systemd/gogs.service) [Systemd Timer Usage](https://linux.cn/article-3996-1.html) [Reload systemd unit after modified](https://serverfault.com/questions/700862/do-systemd-unit-files-have-to-be-reloaded-when-modified) [systemd After= vs Requires=](https://serverfault.com/questions/812584/in-systemd-whats-the-difference-between-after-and-requires) [Auto Mount remote disk Using systemd](https://codingbee.net/rhcsa/rhcsa-automounting-using-systemd-and-autofs) #### Mysql [How to Reset the Root Password?](https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html) [Mac OS 完全卸载Mysql](https://gist.github.com/vitorbritto/0555879fe4414d18569d) [[mysql_localhost_vs_127_0_0_1|Mysql中localhost和127.0.0.1的区别]] [解决Mysql 8.0 以上不支持原始密码登录的问题](https://stackoverflow.com/questions/52364415/the-server-requested-authentication-method-unknown-to-the-client-php) [[Mysql GRANT PRIVILEGES]] [Mysql Slow log 开启,查看,和使用](https://www.cnblogs.com/musings/p/5913186.html) [MySQLTuner Perl](https://github.com/major/MySQLTuner-perl) [查看mysql的datadir](https://stackoverflow.com/questions/17968287/how-to-find-the-mysql-data-directory-from-command-line-in-windows) #### MariaDB [Installing MariaDB on macOS using homebrew](https://mariadb.com/kb/en/library/installing-mariadb-on-macos-using-homebrew/) [[Start MariaDB with Docker]] #### PHP [PHP-FPM](https://www.php.net/manual/en/install.fpm.php) [macOS PHP Development Environment Setup](http://blog.imqia.me/posts/osx-install-nmp/) [macOS config php-fpm](https://lzw.me/a/mac-osx-php-fpm-nginx-mysql.html) [How to Test PHP MySQL Database Connection Using Script](https://www.tecmint.com/test-php-mysql-database-connection-using-script/) [Print PHP call stack](https://stackoverflow.com/questions/1423157/print-php-call-stack) #### Python [Create an Instant Web Server via Terminal Command Line and Python](http://osxdaily.com/2010/05/07/create-an-instant-web-server-via-terminal-command-line/) [Uninstall python on macOS](https://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4/3819829#3819829) [python raw_input vs input](https://stackoverflow.com/questions/4915361/whats-the-difference-between-raw-input-and-input-in-python3-x) #### Wordpress [[Wordpress]] #### Docker [Docker for Mac 下载加速](http://get.daocloud.io/#install-docker-for-mac-windows) [Docker 中国加速镜像](https://www.docker-cn.com/registry-mirror) [Docker enter container with id](https://stackoverflow.com/questions/20932357/docker-enter-running-container-with-new-tty) [Docker copy file from host to container](https://stackoverflow.com/questions/22907231/copying-files-from-host-to-docker-container) [docker-compose 怎么使用最新的镜像?](https://stackoverflow.com/questions/37685581/how-to-get-docker-compose-to-use-the-latest-image-from-repository) [Docker 启动mysql](https://blog.csdn.net/sinat_30397435/article/details/79534785) #### UFW [UFW防火墙设置](http://wiki.ubuntu.com.cn/UFW%E9%98%B2%E7%81%AB%E5%A2%99%E7%AE%80%E5%8D%95%E8%AE%BE%E7%BD%AE) #### Generic [Linux 的启动流程](http://www.ruanyifeng.com/blog/2013/08/linux_boot_process.html) [Unix Signals](http://people.cs.pitt.edu/~alanjawi/cs449/code/shell/UnixSignals.htm) [EOF是什么?](http://www.ruanyifeng.com/blog/2011/11/eof.html) [File system permissions](https://en.wikipedia.org/wiki/File_system_permissions) [不同文件系统下,一个目录下可以放多少个文件](https://stackoverflow.com/questions/466521/how-many-files-can-i-put-in-a-directory) [[Watch Linux memory usage]] [什么是CGI、FastCGI、PHP-CGI、PHP-FPM、Spawn-FCGI?](http://www.cnblogs.com/zl0372/articles/fastcgi_1.html) [Linux htop工具使用详解](http://www.open-open.com/lib/view/open1417612210323.html) [Ubuntu Mysql Installation](https://help.ubuntu.com/lts/serverguide/mysql.html) [Linux 系统版本查看](https://www.cyberciti.biz/faq/find-linux-distribution-name-version-number/) [Use Xmodmap to remapping keys](https://wiki.archlinux.org/title/Xmodmap) [Remap Linux Keyboard](https://github.com/sezanzeb/key-mapper)