原创 linux命令ps aux|grep xxx詳解
ps命令(Process Status)進程查看命令 如果直接用ps命令,會顯示所有進程的狀態,通常結合grep命令查看某進程的狀態。 grep (global search regular expression(RE) and p
原创 Linux Chmod命令筆記
Following are the symbolic representation of three different roles: u is for user, g is for group, o is for others,
原创 利用SSH端口轉發登陸遠程內網服務器
首先一定需要一臺固定IP的服務器做轉發代理,而且保證我們需要連接的目標主機能夠通過SSH連接這臺主機 主要使用命令如下: 在目標主機上執行如下命令: ssh -fCNR B_port:localhost:22 B_username@B_I
原创 C++判斷兩個浮點型數字是否相等
bool Equal(double num1, double num2) { if((num1 - num2 > -0.0000001) && (num1 - num2 < 0.0000001)) return t
原创 g++ error: ‘printf’ was not declared in this scope
由於“printf”是C語言的打印方法,所以在g++編譯器下需要引用頭文件#include <stdio.h> 或者將printf換成c++中cout打印方法 同理: error: ‘nullptr’ was not declared
原创 Install LaTeX on Ubuntu
Install LaTeX on Ubuntu or Debian LaTeX is a document markup language and a text preparation system to create documents