Linux Learning One

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.