Recently help students write a simple script = = (do not spray me ~), the situation frequency, the background operation and the concept of CTRL + Z did not understand clearly made a big joke, the script and the resolution process:#!/bin/bash while:;d o a= ' date +%y/%m%d%t ' java= ' ps aux |grep vsftpd |awk ' nr==1{print $} ' echo "Time $A,CPU usage $java" >> xiangchen/1.txt sleep DoneAt that time directly using CTRL + Z thought is directly in the background to
CTRL-ALT-T Exhale the console.Enter Dconf-editor, without sudo, as the current user configuration.(now Ubuntu 14.04 Package Library has been provided dconf-editor, if not available apt-get install Dconf-editor command to obtain)Come out a window and find this key value pathOrg.gnome.nautilus.preferences, has executable-text-activationThis key value, by default, is display, which is the default text editor.Change to ask.If you want to change back to point to the lower right, set to default, reply
Linux Compile Run Tigl Viewer step (just skip to step 3 for proper compilation of the installation)1. Linux Distribution options:Because of the large number of Linux distributions, there may be differences in the library versions that are included in different versions, so you need to choose the correct version. Since the list of distributions recommended by Opencascade is familiar to Ubuntu, use Ubuntu. (Other distributions of the package installatio
Java project,project name called Cassandra-208-trunk (note that the name must be the same as the directory name)2, click on the newly created cassandra-208-trunk, right mouse button, enter the Properties pageSelect Java Build Path in the left column, select the Source tab on the right, and set the source folders with output folder:Click OK after the modification is complete and save.3. Operation ConfigurationClick on the newly created cassandra-208-trunk, right mouse button, select
framework relies heavily on JIT technology, This leads to a gradual increase in the occupancy ratio of the method area, so it is important to reclaim the method area. According to the Java virtual machine specification, a OutOfMemoryError exception is thrown when the method area does not meet the memory allocation requirements. 3, RUNTIME CONSTANT pool, running the constant-amount pools This area is part of the method area, class A message in the file is a constant pool compile time gen
Two previous articles:Create a new MAVEN Framework Web projectAndChange original project to MAVEN frameworkAfter that, we've got Maven's project.SoHow did the MAVEN project start?If we press the previous startup method directly in the MyEclipse, it is not possible. (More on the next article: Start the MAVEN project in MyEclipse)However, the MAVEN project can generate a local war package to manually move to Tomcat, or it can be automatically published to local, remote Tomcat.So we're going to try
Right-click Project--ExportHere is to note: Modify the MANIFEST.MF file, followed by main-class:[space] Package name/main classYou can also write a script to run, without the command line to run, and Linux under the shell is the same reason!!But run the script process appeared garbled, I was drunk!! Encoding problem, batch processing only supports ANSI encoding,
Reprinted from Http://www.xuzefeng.com/post/85.htmlOn the performance side, running the system on a virtual machine is always weaker than running on this computer, but the virtual machine has its convenience. Sometimes, obviously the computer hardware configuration is enough, but on the virtual machine run Ubuntu when it is a little card. For example, I observed the phenomenon is that Ubuntu interface is very lag. This behavior is most likely a setup
How to run the. sh file under LinuxThis article describes a method of how to run. sh files under Linux with commands, in two ways:First, direct./plus file name. SH, if running hello.sh for./hello.sh "hello.sh must have x permission"Second, direct sh plus filename. sh, such as Run hello.sh for SH hello.sh "hello.sh can have no x permission"Tools/Materials
The Linux system has 7 runlevel (runlevel):Run Level 0: (shutdown) system down state, the system default operation level cannot be set to 0, otherwise it will not start normallyRunLevel 1: Single User working status, root privilege, for system maintenance, remote login ForbiddenRunLevel 2: Multi-User State (no NFS)RunLevel 3: Full multiuser State (with NFS), enter console command line mode after loginRun Level 4: System not used, reservedRun level 5:x
Reprint please indicate http://www.cnblogs.com/winifred-tang94/To create a shell script, start by creating a new text file, and then enter the shell command in the text file according to the Shell programming rules.There are two ways to run a shell program:A, give the shell program execution permissions (through the chmod command)B, through another shell load script (through the SH./script file name of the way to
How long has it been running for a novice on a Linux system to see a process on my Ubuntu Server (or, depending on the process ID )? The following brother even Linux training to share to everyone good method. ··· you need to use the PS command to view information about a set of running processes. the PS Command provides the following two formatting options. ETime shows the time that has passed since the process started, formatted as [[Dd-]hh:]mm:ss. Etimes shows the time, in seconds, that ha
One, in milliseconds .Long startTime = System.currenttimemillis (); Get Start timeDoSomething (); Code snippet for testingLong endTime = System.currenttimemillis (); Get End timeSYSTEM.OUT.PRINTLN ("program Run Time:" + (Endtime-starttime) + "MS"); Output program run timeSecond, the unit is in nanoseconds .Long Starttime=system.nanotime (); Get Start timeDoSomething (); Code snippet for testingLong Endtime=
1. Write an adorner to see when the function executesImport datetimeImport timedef jishi (fun): Def warper (): Start_time = Datetime.datetime.now () Fun () End_time = Datetime.datetime.now () Haoshi = (end_time-start_time). Total_seconds () Print ("function run time {}". Format (Haoshi)) Return Warper ()@jishiDef Yunsuan (): Time.sleep (2) For x in range (100): Print (x)Yunsuan ()Summary: The general idea is to us
I am a wonderful, recently tinker a set on the MAC coding remote Ubuntu on the Theano code of East, in order to benefit posterity.Overview: It's my programming environment and network environmentI expect to be able to write, run, debug, view matplotlib images of remote Ubuntu Theano Server on the local Mac machine.Mac settings (see here )Given the local debugging of some of the Code on Mac, I've set up a scientific computing environment for my Mac as
The user who has used the Win7 system must have used the command this window, we all know that in our Start menu click to see that the Win7 flagship download installed system many of the application will be used to the running window, for the computer This is an indispensable tool, However, if we open the computer do not see how to do, the run window can also be opened in other ways, we immediately solve the problem.
In general, our Win7 system will
There are times when the normal command prompt is not sufficient to meet our needs, and a command prompt with administrator privileges is required to complete our setup or modification. Today we will give you a brief description of how administrator rights to run CMD.
Win8.1 to run CMD using administrator privileges is as follows:
Method One:
1, press win key +r Open
In the Javaweb project, you see a servers project, and find that each new project will generate some of the corresponding project files in the servers project.:Each project has a corresponding file. The structure of the file is shown below:EXPLANATION One: Servers is a plug-in for you to add to the project, the purpose is to configure the server, and does not conflict with your real server configuration, where you can freely configure Tomcat.The default is not to deploy the WebApps to your real
has recently been using visual Studio 2010 to develop silverligth based projects and has used team Foundation server as the management tool for the entire development process. To ensure that the embedding of each other in the development process does not affect each other, we have configured the team Build Service and used the gated Check-in (reference Team Build 2010–gated Check-in to reject code that cannot be compiled for embedding knowledge gated Check-in) to control that everyone's embedded
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.