Linux Common commands

Source: Internet
Author: User
Tags save file

See how many bits Linux is
File/sbin/init or File/bin/ls


View Memory
[email protected] insurance]$ Top
View All Processes
For i in ' pgrep java ';d o echo-e "$i ' ll/proc/$i | grep cwd ' \ n ' netstat-ntpl| grep $i ' ";d One
Assigning permissions to WEBLOGIC10 user rights
View the group where the user weblogic10
[email protected] base_domain]$ groups WEBLOGIC10
Weblogic10:bea
[Email protected] base_domain]# chown-r weblogic10:bea/u01
[Email protected] base_domain]# chown-r weblogic10:bea/u02
[Email protected] base_domain]# chown-r weblogic10:bea/u03
Find Java files
[[email protected] insurance]$ Find/-name java
View the processes that are started
[Email protected] insurance]$ Ps-ef|grep WebLogic
View processes based on ports
[Email protected] ~]$ Netstat-tnpl|grep 2012
(Not all processes could is identified, non-owned process info
Would is not being shown, you would has to be the root to see it all.)
TCP 0 0:: ffff:127.0.0.1:2012:::* LISTEN 6728/java
TCP 0 0:: ffff:192.168.220.51:2012:::* LISTEN 6728/java
[Email protected] ~]$ kill-9 6728
Delete the log and start the program
[Email protected] insurance]$ rm-f nohup.out
[Email protected] insurance]$ sh startweblogic.sh

Unzip zip
[Email protected] tianruicai]$ Unzip Apache-jmeter-2.13.zip


Compress files
TAR-ZCVF Airsale-_20170720-_bug.tar Airsale
Unzip the file
TAR-ZXVF Airsale_2017_07_04.tar

tgz File Decompression
TAR-ZXVF weblogic12fix+jdk1.8.tgz

Environment variable Configuration

You need to configure the JDK yourself to place the JDK in the/u01/jdk1.8.0_144
Vim ~/.bash_profile
Path=/u01/jdk1.8.0_144/bin: $PATH: $HOME/bin
Export PATH
Login in effect again

Save command: Force save file, Exit VI
Press the ESC key to jump out of command mode: wq!

Copy a folder to another folder
[Email protected] u02]$ cp-r weblogic12c-new//u01

Jira command
Netstat-tnpl|grep 8080 View process kill process also OK
Find/-name Jira Locate the installation directory for Jira
Jira/jira/bin into the bin directory

SH shutdown.sh kill Process
SH startup.sh start Jira

Linux Common commands

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.