View Ip:ifconfig
Network card startup: Ifup eth0
View RPM Package Installation: Rpm-qa|grep SSH
SSH service startup: Service sshd start or/etc/init.d/sshd Start
SSH Service restart: service sshd restart
View SSH port: grep port/etc/ssh/sshd_config
Turn off Firewall service iptables stop
View Port usage: NETSTAT-APNSee where Java is: Whereis java
View Java execution path: which Java
View JDK location: Echo $JAVA _home
See Path:echo $PATH
II: Here are the environment variables for configuring Linux: (Remember source. bash_profile)
. Modify the/etc/profile file (global All users)
VI this file/etc/profile
Add at the end of the profile file:
Export java_home=/usr/share/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
Export Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
. Modify the. bash_profile file (These environment variables are used by a user right)
. Bash_ At the end of the profile file, add:
Export java_home=/usr/share/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
Export Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
. Shell Terminal executes the following command: (temporary)
Export java_home=/usr/ Share/jdk1.6.0_14
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib /tools.jar
Three. Uninstall the JDK
• Locate the _uninst subdirectory of the JDK installation directory
• Execute commands at the shell terminal./uninstall.sh to uninstall the JDK.
RM Delete directory or file-F mandatory
PWD View current directory
Linux full tab
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Linux Learning One