Python -> PyCharm
C/C++ -> CLion
作者:谢泽帆
链接:https://www.zhihu.com/question/19819902/answer/31458493
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
sudo dpkg -I iptux.deb #查看iptux.deb软件包的详细信息,包括软件名称、版本以及大小等(其中-I等价于--info)
sudo dpkg -c iptux.deb #查看iptux.deb软件包中包含的文件结构(其中-c等价于--contents)
sudo dpkg -i iptux.deb #安装iptux.deb软件包(其中-i等价于--install)
sudo dpkg -l iptux #查看iptux软件包的信息(软件名称可通过dpkg -I命令查看,其中-l等价于--list)
sudo dpkg -L iptux #查看iptux软件包安装的所有文件(软件名称可通过dpkg -I命令查看,其中-L等价于--listfiles)
sudo dpkg -s iptux #查看iptux软件包的详细信息(软件名称可通过dpkg -I命令查看,其中-s等价于--status)
sudo dpkg -r iptux #卸载iptux软件包(软件名称可通过dpkg -I命令查看,其中-r等价于--remove)
注:dpkg命令无法自动解决依赖关系。如果安装的deb包存在依赖包,则应避免使用此命令,或者按照依赖关系顺序安装依赖包。
dpkg -l | grep -i nvidia
sudo apt-get update
$ sudo apt-cache search "NVIDIA binary driver"
shaowsocks安装
PPA is for Ubuntu >= 14.04
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5
.bashrc
is a shell script that Bash runs whenever it is started interactively
ldconfig - configure dynamic linker run-time bindings
PKG_CONFIG_PATH is a environment variable which holds the path of pkg-config script.
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
java安装
- Change to the directory in which you want to install. Type:
cd
<directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/
Note about root access:To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install Java in your home directory or a subdirectory for which you have write permissions. - Move the .tar.gz archive binary to the current directory.
- Unpack the tarball and install Java
tar zxvf jre-7u7-linux-x64.tar.gz
The Java files are installed in a directory called jre1.7.0_07 in the current directory. In this example, it is installed in the/usr/java/jre1.7.0_07
directory. When the installation has completed, you will see the wordDone.
- Delete the .tar.gz file if you want to save disk space.
Solved this by manually setting java path with /etc/profile
.
Add following lines to there.
Solved this by manually setting java path with
/etc/profile
.Add following lines to there.
JAVA_HOME=/usr/lib/jvm/java-6-openjdk export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH
scp命令的实际应用概述:
从本地服务器复制到远程服务器:
(1) 复制文件:
命令格式:
scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file
(2) 复制目录:
命令格式:
scp -r local_folder remote_username@remote_ip:remote_folder