Linux Basic command practice this guy's so strong. Turn __linux

Source: Internet
Author: User
Tags clear screen memory usage disk usage

----------------Find a File method----------------------

Find. -name "Project_supply_sign.xsl"

----------------FTP Method---------------------------

[Root@ecapp1 shx3]# CD Common

[Root@ecapp1 common]# CD JS

[Root@ecapp1 js]# FTP 172.0.2.21

Connected to 172.0.2.21.

2.0.1 (VSFTPD)

530 Please login with the USER and pass.

530 Please login with the USER and pass.

Kerberos_v4 rejected as an authentication type

Name (172.0.2.21:root): App1

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

Ftp> CD SONGYC

Directory successfully changed.

Ftp> Get Util.js

Local:util.js Remote:util.js

Entering passive Mode (172,0,2,21,226,163)

Opening BINARY mode data connection for Util.js (30380 bytes).

The File send OK.

30380 bytes received in 0.0051 seconds (5.9e+03 kbytes/s)

Ftp> quit

##################### the war package with jar command ##############################################

Copy:

[Root@emed4test song_temp]# CP. /shx3.war./

Extract:

[Root@emed4test song_temp]# jar-xvf./shx3.war Extract to current directory

To delete a war:

[Root@emed4test song_temp]# rm-f./shx3.war

Compression:

[Root@emed4test song_temp]# JAR-CVF. /shx3.war.

If you are in a compressed directory, execute the above command.

If you are in the previous level directory:

JAR-CVF Shx3.war./Compressed Directory

[root@emed4test root]# Clear Screen ctrl+l

*************************************************************************

[Root@emed4test root]# finger root displays user information

Login:root Name:root

Directory:/root Shell:/bin/bash

On since Thu Feb 9 10:29 (CST) in PTS/3 from 172.25.60.118

On since Thu Feb 9 09:57 (CST) in pts/0 from 172.25.50.96

1 Hour 2 minutes idle

Mail last Read Thu Dec 06:03 (CST)

No plan.

***************************************************************************

[Root@emed4test root]# whoami Display current user

Root

[Root@emed4test root]# who am I show current user with date

Root PTS/3 Feb 9 10:29 (172.25.60.118)

***************************************************************************

[Root@emed4test root]# Date Display system time

Thu Feb 9 11:04:41 CST 2006

***************************************************************************

[Root@emed4test root]# Last display previous user login information

Root PTS/3 172.25.60.118 Thu Feb 9 10:29 still in

Root pts/0 172.25.50.96 Thu Feb 9 09:57 still in

Root pts/0 172.25.83.246 Thu Feb 9 09:05-09:21 (00:16)

Duanxw pts/1 172.25.60.118 Tue Feb 7 09:04-09:14 (00:10)

***************************************************************************

[Root@emed4test root]# History|more shows all previous commands, one stop per screen

Kill-9 28251

Ps-ef|grep Java

mkdir logs

Nohup./startweblogic.sh &

Tail-f Nohup.out

Ps-ef|grep Java

Kill-9 28388

RM-RF Nohup.out

Nohup/startweblogic.sh &

cd/opt/httpd2fordata/bin/

/apachectl start

/apachectl stop

***************************************************************************

[Root@emed4test root]# uptime shows the time since the last reboot

11:09:24 up, 21:16, 2 users, load average:0.02, 0.05, 0.01

***************************************************************************

[Root@emed4test root]# PS Displays the process that the current user is executing

PID TTY Time CMD

30419 PTS/3 00:00:00 Bash

30457 PTS/3 00:00:00 Mans

***************************************************************************

[Root@emed4test root]# PS Axu | More display controllable and not controlled all processes, one stop per screen

USER PID%cpu%mem VSZ RSS TTY STAT START time COMMAND

Root 1 0.0 0.0 1364 72? S Jan20 0:18 Init

Nobody 22702 0.0 0.0 4888 376? S Feb07 0:00 [httpd]

Root 29101 0.0 0.0 4164 4? S Feb08 0:00/bin/sh./startweblogic.sh

Root 29120 0.2 8.0 810720 82504? S Feb08 3:13/opt/j2sdk1.4.2_08/bin/java-client-xms32m-

Xmx200m-xx:maxpermsize=128m-xverify:none-dweblogic.name=myserver-dweblogic.productionmodeenabled=-Djava

. Security.policy=/opt/bea/weblogic81/server/lib/weblogic.policy WebLogic. Server

Root 29280 0.0 0.0 4164 172? S Feb08 0:00/bin/sh/opt/bea/projects/shx3/startweblogic.

Sh

***************************************************************************

[Root@emed4test root]# Top------Continuously displays the resource usage of each process system-----

11:16:21 up, 21:22, 2 users, load average:0.23, 0.22, 0.09

Processes:66 sleeping, 1 running, 0 zombie, stopped

CPU0 states:4.0% User 0.1% system 0.0% Nice 0.0% iowait 95.3% idle

CPU1 states:0.0% User 0.0% system 0.0% Nice 0.0% iowait 100.0% idle

mem:1030284k av, 1008176k used, 22108k free, 0k shrd, 119136k Buff

767660k ACTV, 0k in_d, 20896k In_c

swap:2040244k av, 187196k used, 1853048k free 325008k Cached

PID USER PRI NI SIZE RSS SHARE STAT%cpu%mem time CPU COMMAND

29300 Root 0 409M 403M 31032 S 3.9 40.0 14:04 0 Java

30543 Root 0 1184 1184 856 R 0.3 0.1 0:00 0 Top

1 root 0 0.0 S 0.0 0:18 1 init

***************************************************************************

[Root@emed4test root]# free----------shows memory usage--------------

Total used free shared buffers Cached

mem:1030284 1008448 21836 0 119152 325104

-/+ buffers/cache:564192 466092

swap:2040244 187232 1853012

Or you can use Cat/proc/meminfo to view the details of memory usage

***************************************************************************

[Root@emed4test root]# df-h Displays all file system hard drive usage

FileSystem Size Used Avail use% mounted on

/dev/sda2 15G 12G 2.2G 85%/

/DEV/SDA1 99M 15M 79M 16%/boot

None 504M 0 504M 0%/dev/shm

***************************************************************************

[Root@emed4test root]# du/-bh|more shows the hard disk usage of files in each process

8.0k/lost+found/#508086/_appsdir_shx3_war/shx3.war/meta-inf

8.0k/lost+found/#508086/_appsdir_shx3_war/shx3.war/web-inf/classes/net/emedchina/address/db/map

48k/lost+found/#508086/_appsdir_shx3_war/shx3.war/web-inf/classes/net/emedchina/address/db

***************************************************************************

[Root@emed4test root]# cat/proc/cpuinfo-------Display detailed parameters for each processor in the server----------

processor:0

Vendor_id:genuineintel

CPU Family:6

Model:8

Model Name:pentium III (Coppermine)

Stepping:10

CPU mhz:999.552

Cache size:256 KB

Physical id:0

Siblings:1

Fdiv_bug:no

Hlt_bug:no

F00f_bug:no

Coma_bug:no

Fpu:yes

Fpu_exception:yes

CPUID Level:2

Wp:yes

FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 MMX FXSR SSE

bogomips:1992.29

Processor:1

Vendor_id:genuineintel

CPU Family:6

Model:8

Model Name:pentium III (Coppermine)

Stepping:10

CPU mhz:999.552

Cache size:256 KB

Physical id:0

Siblings:1

Fdiv_bug:no

Hlt_bug:no

F00f_bug:no

Coma_bug:no

Fpu:yes

Fpu_exception:yes

CPUID Level:2

Wp:yes

FLAGS:FPU VME de PSE TSC MSR PAE MCE cx8 APIC Sep MTRR PGE MCA cmov Pat PSE36 MMX FXSR SSE

bogomips:1998.84

***************************************************************************

[Root@emed4test root]# cat/proc/interrupts displays all interrupts for the current server

CPU0 CPU1

0:90130655 82403120 Io-apic-edge Timer

1:5 7 Io-apic-edge keyboard

2:0 0 xt-pic Cascade

8: &nbs

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.