Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Monitor Multiple Logs in a Single Shell with MultiTail for Linux Monitor multiple Activitate într-un Shell single cu MultiTail pentru Linux

Whether you are responsible for a server or just a programmer doing development, you'll often have more than one logfile that you want to track at the same time. Fie că sunteţi responsabil pentru un server sau doar un programator faci de dezvoltare, veţi avea de multe ori mai mult de o Logfile pe care doriţi să le urmăriţi în acelaşi timp. There's a nifty little utility for Linux called MultiTail that allows you to monitor multiple logs in a single window, instead of requiring multiple separate shell windows open. Există o utilitate nifty deget mic pentru Linux numita MultiTail care vă permite să monitorizeze jurnalele de mai multe într-o singură fereastră, în loc de a cere mai multe ferestre separate shell deschise.

Installation De instalare

First you'll need to download and extract the source code using the following command. Mai întâi va trebui să descărcaţi şi să extrage codul sursă folosind comanda de mai jos. (Note that you should adjust these commands for the latest version if necessary) (Reţineţi că tu ar trebui să adapteze aceste comenzi pentru cea mai recentă versiune, dacă este necesar)

wget http://www.vanheusden.com/multitail/multitail-5.2.0.tgz http://www.vanheusden.com/multitail/multitail-5.2.0.tgz wget

tar xvfz multitail-5.2.0.tgz tar multitail xvfz-5.2.0.tgz

Now change into the directory and run “make install” to both compile and install the application. Acum, schimba în directorul şi a alerga "make install" la ambele compila şi instala aplicaţia. You'll need to be running as root to install this particular application, or you can just use sudo as shown: Veţi avea nevoie să se rulează ca root pentru a instala această aplicaţie special, sau puteţi folosi sudo la fel ca mai jos:

cd multitail-5.2.0 multitail cd-5.2.0

sudo make install sudo make install

At this point it's completely installed and can be used by any user. În acest moment este complet instalat şi poate fi utilizat de orice utilizator. The default installation location is /usr/bin/multitail Locaţia implicită de instalare este / usr / bin / multitail

Usage Mod de utilizare

You can merge logfiles into a horizontally split window by using the -i command before each logfile. Nu puteţi combina fişiere de jurnal într-o fereastră pe orizontală, defalcate pe utilizând comanda-i înainte de fiecare logfile. This is most useful when you don't have a lot of space or the lines in the file are very long. Acest lucru este cea mai utilă atunci când nu aveţi o mulţime de spaţiu sau de linii în fişierul sunt foarte lungi.

multitail -i error_log -i access_log multitail-error_log i-am access_log

imaginea

You can even use the -l command to show the output of a command, such as a ping or trace. Puteţi utiliza chiar comanda-l pentru a arăta de ieşire a unei comenzi, cum ar fi un ping sau urme. This would also allow you to use scripts that strip out output that you don't want… often you only want to see certain lines in a file, such as errors. Acest lucru ar permite, de asemenea, să folosiţi script-uri care benzi de ieşire faptul că nu vrei ... de multe ori doriţi doar să vedeţi anumite linii într-un fişier, cum ar fi erori.

multitail -l “ping www.howtogeek.com” -l “ping blogs.howtogeek.com” multitail-l "www.howtogeek.com ping"-l "ping blogs.howtogeek.com"

imaginea

There are loads of other options, which I will leave as an exercise for the reader. Există sarcini de alte opţiuni, pe care le voi lăsa ca un exerciţiu pentru cititor. You can change the color schemes, split vertically as well as horizontally, or even view statistics on the logfiles. Aveţi posibilitatea să modificaţi scheme de culori, împărţită pe verticală, cât şi orizontal, sau chiar a vizualiza statisticile pe fişiere de jurnal.

You can check out the Puteţi verifica afarã examples page Exemple de start on the multitail homepage, or just use the –help option to see the giant list of options. pe pagina de start multitail, sau să folosesc-ajutorare opţiune pentru a vedea lista gigant de opţiuni.

Download MultiTail from vanheusden.com Descarca MultiTail de la vanheusden.com

This article was originally written on 12/19/07 Tagged with: Acest articol a fost scris iniţial pe 12.19.07 Etichetate cu: Linux Linux

Daily Email Updates Daily Actualizări de email

You can get our how-to articles in your inbox each day for free. Aveţi posibilitatea să obţineţi modul nostru de-a articole în Inbox în fiecare zi pentru drum liber. Just enter your name and email below: Doar introduceţi numele dvs. şi e-mail de mai jos:


Name: Nume:
Email: E-mail:

Comments (1) Comentarii (1)

  1. Shoaibi Shoaibi

    well on ubuntu you can do: de bine pe Ubuntu puteţi face:
    apt-get install multitail apt-get install multitail


Leave a Comment Lăsaţi un comentariu




Leave your Leave tău friendly prietenoasa comment here. comentariu aici.

If you have a computer help question, Dacă aveţi un calculator ajuta la întrebare, click here to leave it on the forums click aici pentru a lăsa pe forum instead. în schimb.

Note: Your comment may not show up immediately on the site. Notă: Comentariul dvs. să nu apară imediat pe site-ul.

Our Friends Our Friends
Getting Started Noţiuni de bază


About How-To Geek Despre "Cum să" Geek
What Is That Process? Ce este acest proces?
svchost.exe svchost.exe
jusched.exe winampa.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Toate drepturile rezervate.