Familiar with common Linux commands

Source: Internet
Author: User

With the increasing number of windows vulnerabilities, linux has gradually become popular among all grass-roots webmasters. However, due to the low usage of linux systems, many webmasters do not know how to use them. In addition, many linux systems have been used to delete graphical interfaces. For webmasters, operating command lines is like returning to the DOS system of the last century. The Helper house has been paying attention to the Internet and has made its own small contribution to the development of the Internet. Today we will learn about common linux commands, so our webmasters will be nice.

. Current Directory
.. Directory at the upper level
Save the execution result to the file: ps> ps.txt
Cd ~ : Return to the home directory
Gg: File Header
Shift + g: End of the file
/Pattern: Search for pattern from the beginning of the cursor to the end of the file
? Pattern: Search for pattern from the beginning of the cursor
N: Repeat the previous search command in the same direction.
N: Repeat the previous search command in the reverse direction.
Ls text *: displays files starting with text.
W: view the user information of the logon System
Start tomcat:./startup. sh
View process information: ps aux | grep tomcat
Ps aux | grep java view java Process
Tip: tab
Cd .. go back to the upper-level directory
: Return to the home directory:
Ls = dir
Pwd Current Directory
Vi: ctrl + B: Previous Page ctrl + F: Next page first: Last file:
Exit vi: wq save modification information ZZ: uppercase
: Q! Do not save the modification Information
Touch: Create text

Remote tomcat Console Commands and tomcat logs:
Log on to linux using a remote client
Go to the tomcat/logs/folder
Type the command: tail-f catalina. out
Ctrl + c Exit tail
Ctrl + M: Maximize/restore the current window
Kill-9 java: Terminate java Process pkill batch Deletion
Find the file: find/-name 'abc *. abc'

View the print info: AppServer-> Profiles-> cmdrv01-> MICPortalWeb-> server1-> tail-f SystemOut. log of websphere so that logs can be stored on the command line console.
/Opt/IBM/WebSphere/AppServer/profiles/default/logs/server1 find the SystemOut. log and SystemErr. log files with the information you want

How to view tomcat output information in linux
Cd # tomcat installation directory # cd logs vi catalina. out or: tail-f catalina. out

The output information of tomcat is the same as that of tomcat windows.

We will continue to sort out the articles in the future. You are welcome to sit at the home of the customer.

Related Article

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.