1 PackageAlgorithms.util;2 3 /******************************************************************************4 * Compilation:javac Directory.java5 * Execution:java Directory directory-name6 * Dependencies:Queue.java Stdout.java7 * 8 * Prints out all of the files in the given directory and any9 * subdirectories in Level-order by using a queue. Also PrintsTen * out their file sizes in bytes. One * A *% java Directory. - * - *********************************************************************
When you are maintaining Oracle, you can use some Unix operating system commands to view system-related information under various operating systems.
Memory
-------
Aix:bootinfo-r
LSATTR-E-LMEM0
/USR/SBIN/LSATTR-E-L sys0-a Realmem
Or use a tool as "Topas" or "Nmon" (These are utilities)
Linux:cat/proc/meminfo
/USR/SBIN/DMESG | grep "Physical"
Free (the free command)
HP:/usr/sam/lbin/getmem
grep me
[terminal]
Note: The machine architecture used by both parties must be the same when talking to each other using talk. After the other party gives the response talk command, both terminals will display
[Connect established]
Both parties can communicate in duplex mode. Both parties can input at any speed from the keyboard, and talk will display one line of your input on the screen of you and the other party. Quit talk.
Use mesg to reject and allow receiving packets
The mesg command allows or re
the compressed file.-V Displays the instruction execution process or displays version information.-V Saves the file properties of the VMS operating system.-W in the file name if the version number, this parameter is only valid under the VMS operating system.-x-X does not save additional file attributes.-Y saves the symbolic connection directly, not the file that the connection points to, and this parameter is only valid under systems such as UNIX.-Z
5. Accumulated Linux/UNIX operation commands (cp, mv, cat, grep, ps) and cpgrep
In Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore, this article has been specially developed, prepared, and started. This article mainly records some of the operating
UNIX ar commandsCommon options
After the source code file is compiled, the corresponding target file (. o file) is generated. Generally, the process of creating a static library is to package these. o files into a libXXXX. a file.The meanings of several common commands for ar commands are as follows:-R format: ar-r libXXXX. a 1.o 2. o Note: When the lib file does
under the use of Linux/unix, often using the text interface to set up the system or operating system, the author himself in the process of work is also in constant contact with this command, so for This special brewing, preparation, began the writing of this article. This paper mainly records some of their usual linux/unix under the operation of commands, record
Watch: regularly repeat Linux/Unix Commands
The server administrator must maintain the system and maintain updates and security. Run a large number of commands every day. Some system processes record logs. These logs are constantly updated. To check for these updates, you must execute the command again. For example, to read a log file, you need to use
Introduction to Unix awk commands
The most basic function of the awk language is to browse and extract information based on specified rules in a file or string. Only after awk extracts information can other text operations be performed, A complete awk script is usually used to format information in a text file.
Call awk:First, the command line method, such as awk[-F field-separator]'
Common commands for clearing disk space in Unix/Linux
Here we recommend several common methods for clearing disk space in Unix/Linux:
Method 1:
Find./-name "*. log *"-exec echo ">" {}\; | sh
This command searches for the files ending with ". log" in the current directory and clears the files. This command is suitable for long-standing log and cannot be deleted di
name. So if you also encounter this error, please check that the user name, group name, and other settings are correct.After uploading, you will see committed revision 1. The words, the upload was successful. Congratulations to you here. But don't take it easy on your guard and let the other members test their read and write permissions. Please try it for a reference. Here are a few more you need to test I do not one to do.Test 2: Download code from server side to client local(Pending completio
Hp unix has maintained a high market share in large enterprise-level hosts. For its top commands, I have read some documents before. Here I will summarize how to analyze the contents.
1.TopThe command syntax is as follows:
Top [-s time] [-D count] [-q] [-u] [-H] [-N number] [-f filename]
-S time: set the screen refresh latency, in seconds. The default value is 5 seconds.
-D count: set the number of screen r
CPU time of the process)
PRI
Process Priority Scheme. A large number indicates a lower priority.
Ni
Nice value of the process, which is associated with the priority scheme. Enabling a process "nicer" means lowering the priority of the process so that it does not use up CPU time
SZ
The amount of virtual memory requested by the process. This is a good indicator of the system's memory requirements.
Tty
Start the terminal of the process (or parent pro
BKJIA: In this article, we will introduce six cool and practical Unix/Linux tools. From viewing the weather through your terminal to letting a system administrator teach you how to complete a difficult task, there is almost no clue. Interestingly, most of these tools were released decades ago! Please let me know ......
Mentoring dialogue: kibitz
Kibitz is a terminal tool mainly used by a "master" to help him/her "apprentice )". Essentially, it provide
MAN: manual refers to the manual. You can use this command to query the usage of other commands.
PWD: Print working directory indicates a password.
Su: Switch the swith user to the root user.
CD: Change directory switch directory
Ls: List Files
PS: Process status
Mkdir: Make directory to create a directory
Rmdir: Remove directory move directory
Mkfs: Make File System: create a file system
Fsck: File System check file system check
C
Introduction: Most Java programmers use some sort of tracking system to track potential bugs and problems with code in development. However, multithreading and multi-platform environments can generate a lot of puzzling trace data. In this article, software engineer Daniel Would provides some tips to help you understand the trace data that is generated in a complex application. You will learn how to use the Open source logging package log4j to generate a log file that contains rich information. Y
With more than 10 years of windows, and finally changed a high with the Mac, as the saying goes regardless of the front end or back end or toward the Linux, no matter how many PCs will eventually go to the Mac. Not learning command line with what Mac? It's done!
Pwd shows the current file path (print working directory)
Ls shows the files and folders in the current path (list, not is! the landlord always thought it was Is, always wrong)
Mkdir create folder (make directory)
Rmdir delete fold
1. Query IP address ifconfig2. Find port assignments for applications on the servergrep telnet/etc/services (telnet)Telnet using the TCP/UDP port number 23grep domain/etc/services (domain),
Telnet
Ftp
Tftp
http
Https
Snmp
Domain
Echo
Discard
Daytime
Chargen
Time
23
20
69
80
443
161
53
7
9
13
19
37
3.ping [IP Address], test the network for connect
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.