Cat display fileMore: Display files. Pause after each screen is displayed.PG pagination commandAfter running this command, a prompt is displayed at the bottom of the screen. You can enter the command,+N forward n screens-N back n screens+NL advances
I have been busy recently and may not have time to write a blog. Write a shorter one first. In one sentence, can you search for your screen output?
Don't tell me that this is useless. I also use it every day. There is always a need to find a
ADB shell top
PID: ID of the process in the system
CPU %-current instantaneous CPU usage
# Thr-ProgramNumber of threads currently used
UID-the user ID that runs the current process
Name-program name Android. process. Media
VSS-virtual set
Previously, when I used application development in the android simulator, I used the ADB shell to enter the shell of the simulator. The current user is the root user, and there is no need for that.Today, I met a colleague who took the real machine
Point (.) command
The dot (.) command is an internal shell command that allows you to execute programs in the current shell without creating sub-processes.
Note
# Shell script annotator
Redirection character
> Usage: Command> filename. You can save
1. Display and Shell
We use two SWT classes to create windows:DisplayAndShell.DisplayIs the class responsible for managing the interaction between all SWT Widgets
And the underlying operating system. It is inDisplayThat you find methods that enable
The traffic of the database server, image server, FTP server, and other NICS is usually relatively large. Therefore, we need to perform necessary monitoring measures to determine whether the NIC will become a bottleneck, you can also set up a
CTRL + a switch to the command line
CTRL + e switch to the end of the command line
CTRL + l clear screen content
CTRL + u
ClearCut the content before the cursor
CTRL + k cut
ClearContent after the cursor
CTRL + y copy the content in the
Wshshell object
Progid wscript. Shell
File Name wshom. ocx
CLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0B
IID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B
The following table describes the properties related to the wshshell object.
Attribute
1. Remove the file suffix ". Sh" from the current directory"
For I in 'ls .'
Do
MV-V $ I 'echo $ {I %. Sh }'
Done
2. When the column file directory is in the shell, the file name variable with spaces is not treated as two parameters.
Ls-
In the past, when I was writing code, I encountered a problem with the file path. for example, extract the directory or file name of the file path and determine whether the directory or file exists. every time you encounter such a problem, you
1. I installed the vmwarevirtual machine Linux redhat9 with built-in ssh. On the Linux terminal, enter SSH to view the relevant information.2. install sshsecureshellclient-3.2.9.exe in Windows XP and install it in the default path. After
$ # Indicates the number of parameters passed to the script (or function), $0 indicates the name of the script itself, and $ @ indicates the list of all parameters passed to the script (or function). For example:
Cat Foo. Sh#! /Bin/bash
Echo
Compression command:*. Z compress program zookeeper case;*. Bz2 Bzip2 program zookeeper case;*. GZ gzip program upload history case;* The resources packaged by the. Tar program have not been deleted;* .Tar.gz tar program packaging example, which has
Date + % s can get UNIX timestamp;Use shell to convert time strings and timestamps:Date-d "00:00:00" + % s output format: 1287331200The time stamp can be converted to a string as follows:Date-d @ 1287331200 "+ % Y-% m-% d" output format:
Originally published on Netease blog 20:17:39
Operating the database in Solaris shell is not very complicated. The whole process is the same as writing an FTP login shell.
The following is the shell I wrote after referring to the online materials:
1.
One of the most depressing problems in code debugging is that once Erlang shell closes the command history that has just been entered, it will be lost. It is convenient to maintain the history of an input command; the following project can help us
2.1 What is Shell
Interpreted language, which is not suitable for jobs that are picky about execution time or have a large processor.
Shell is a program that acts as an operation interface between users and Unix systems. File
Button action
CTRL + a move to the beginning of the line
CTRL + e move to the end of the row
CTRL + B move the cursor one character to the left
CTRL + F move the cursor one character to the right
CTRL + C terminate the processCTRL + z pending
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