Tags: ext list folder Justify top style is add marginLs-l |grep "^-" |wc-l//verified Redhat easy to useOrFind./company-type F | Wc-lView the number of files under a folder, including the subfolders.Ls-lr|grep "^-" |wc-lView the number of folders under a folder, including those in subfolders.Ls-lr|grep "^d" |wc-lDescriptionLs-lLong list output file information in this directory (note the file here, different from the general file, may be the directory, links, device files, etc.)grep "^-"In this c
This method is to get the screen shots of current activity through view, not framebuffer way, so there are some limitations. But this method is relatively simple and easy to understand.
Get a screenshot of the bitmap format first by using the following function:
Copy Code code as follows:
Public Bitmap myshot (activity activity) {
Get the top view
Tags: program blank ext suse process Dalian param Connect UserRelationship between two parameters: Sessions=1.1*processes+5 The current summary of the statement, in view of the data connection is very useful, after writing the program while testing the code side to see the release of database connections to help optimize the analysis of a robust system program. 1.SQL code1.select Count (*) fromv$processSel
The PHP session variable is used to store information about a user's session or to change settings for a user session. The Session variable holds information that is single-user and can be used by all pages in the application.
PHP Session variables
When you run an application, you open it, make some changes, and then close it. It's like a conversation. The computer knows who you are. It knows when you start the application and when it terminates. But on the internet, there is a problem: the s
started in the background to control it, or look at the situationof the class. Start with the following command:erl-name [email protected]where B is also an English name, but note that it cannot be the same as the previous one (even if the IP is different). ThisThe IP at the office seems to be easy to write because it does not need to be connected back to B from a. But if you want, you might want to write aA valid IP that can be accessed from a to B.After booting, enter into the interactive env
/* -- Handle deadlocksView the current process or deadlock process and automatically kill the dead processBecause it is intended for dead, if there is a deadlock process, you can only view the deadlock processOf course, you can use parameter control to check only the deadlock process, whether there is a deadlock or not.-- Producer build 2004.4 --*//* -- Call exampleExec p_lockinfo--*/Create proc p_lockinfo@
sent per second by the block device;For example, if we read the file,Bo will be greater than 0. Bi and Bo are generally close to 0, otherwise the IO is too frequent and needs to be adjusted.Inchrepresents per second The number of interrupts, including time interruption, of the CPU;Csrepresents the context per second number of switches,When invoking the system function, it is necessary to switch the context, the switch of the thread, and the process context.The smaller the value, the better, too
1, through PL/SQL to connect to other databases can be implemented by the service name by adding IP and left slash:2, sometimes our IP and left slash can not lose the other database, because it is configured in a file. Where is this file?In the Network/admin/tnsnames.ora file under this path, we can seeCan see the configuration file has been equipped with the remote address and port, as well as the service name, when we log in, the database select PLATFORM1, in fact, choose this set of configura
First, Linux view the current state of the firewall1) View firewall status:/etc/init.d/iptables statusTo temporarily turn off the firewall:/etc/init.d/iptables stopPrevent firewalls from starting at system startup/sbin/chkconfig--level 2345 iptables offRestart Iptables:/etc/init.d/iptables restartSecond, the restart after the effectiveOpen: Chkconfig iptables onO
How to view the current system version under Linux:Uname-rFunction Description: Uname is used to obtain information about the computer and the operating system.Syntax: uname [-amnrsvpio][--help][--version]Supplemental Note: uname can display basic information such as the version of the operating system used by the Linux host, the name of the hardware.Parameters-A or –all verbose output all information, foll
' asmessage -
$
the
the --Cycle Start
the
the while @intCounter @intCountProperties
-
in begin
the
the --take the first record
About
the Select @spid =spid@bl =BL the
the from#tmp_lock_whowhereId= @intCounter
+
- begin
the
Bayi if @spid =0
the
the Select 'causing the database deadlock is:'+ CAST(@bl as VARCHAR(Ten))+ 'process number, which executes the following SQL syntax'
-
- Else
the
the Select 'process number spid:'+ CAST(@spid
Transferred from: http://blog.csdn.net/mybelief321/article/details/9076331Note: The current system runs a variety of data recorded under the proc directory, version information can be seen directly through cat.First KindUse the command: Cat/proc/version viewProc Directory of the current system running a variety of data, version record information can be seen directly through cat, you can also see my GCC ver
Process
/*--Handle Deadlocks
View the current process, or the deadlock process, and automatically kill the process
Because it is dead, so if there is a deadlock process, only the deadlock process can be viewedOf course, you can control by parameter, whether or not deadlock, only check the view lock process
--Jiangjian 2004.4--*/
/*--Call Example
EXEC P_lockinfo--
sent per second by the block device;For example, if we read the file,Bo will be greater than 0. Bi and Bo are generally close to 0, otherwise the IO is too frequent and needs to be adjusted.Inchrepresents per second The number of interrupts, including time interruption, of the CPU;Csrepresents the context per second number of switches,When invoking the system function, it is necessary to switch the context, the switch of the thread, and the process context.The smaller the value, the better, too
Viewed the number of connections and the current number of connections
Copy Code code as follows:
Netstat-ant | grep $IP: 80 | Wc-l
Netstat-ant | grep $IP: 80 | grep EST | Wc-l
View IP access times
Copy Code code as follows:
Netstat-nat|grep ":" |awk ' {print $} ' |awk-f: ' {print $} ' | Sort| Uniq-c|sort-n
Linux command:
Copy Code code as follows:
Tags: database CTI login Connection number requests status Join no backgroundSELECT * FROM sys.sysprocesses -check processSELECT * FROM Sys.sysusers ----Check user related informationSelect * FROM Sys.dm_exec_connections--this command can see the connection condition--This command can see how many sessions, one connection can have multiple sessionsSelect session_id,status,login_name,login_time,* from sys.dm_exec_sessions Select sql_handle,* from sys.dm_exec_requests-The ID of the reques
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.