General :: Tail The Latest Log File In One Command Line?

Feb 1, 2010

I want to tail the latest log file in one command line. I dont know what command/option to use for the same.

View 5 Replies


ADVERTISEMENT

General :: Tail Command Syntax To Print A Sequence Of Line ?

Dec 21, 2010

How to print a sequence of line say line number 10 to 20 of a 50 line file ?

View 6 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Tail Command Does Not Refresh All The Time?

Oct 26, 2010

I am running a script with nohup and this generates a lot of logs.

In order to view the log I use tail -f nohup.out

The problem is that the info supplied by this command is not always the latest//sometimes I need to use the command again order to view the latest info added to the nohup.out file.

View 3 Replies View Related

General :: Tail -f Not Tracking File Changes?

Jun 20, 2010

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ran: tail -f /home/name/text Then, I opened the log in vim and did some editing, saved it, and it seems that tail is not "seeing" the change.

The weird thing is, running echo "hello" >> /home/name/text seems to work fine (tail sees the change). I read somewhere this has something to do with file descriptors and new inodes being created when saving a file.

View 3 Replies View Related

General :: Tail File If The Name Is Changeable?

Jan 1, 2010

am facing a problem with tailing a log file. Logs of application located in one folder:applog_20100101_0200.log <--log until 2 am january 1applog_20100101_0456.log <--log until 4:56 amapplog.log <-- current logApplication can change log when ever it wants to. I need to monitor this log, what i do:tail -f applog.logBut when app changes log my tail just stops. How can i tail applog.log all the time with out stops?

View 7 Replies View Related

General :: Convert An HTML Email Saved As A Text File To A PDF File From The Command Line?

Aug 23, 2011

I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.

Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?

View 1 Replies View Related

General :: Download A File From Command Line?

Apr 8, 2011

Let's say i have a link to a file http://www.domain.com/dir/myfile.ext

Is there a command line tool that will allow me to download this file. I'm looking for something like: download <http address> ... is there anything that simple?

View 2 Replies View Related

General :: Insert Line Into A File With A Command?

Jan 4, 2010

I would like to insert a line into the /etc/sysconfig/iptables with a command like sed or with any script. How can I insert this line:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

but under the line "-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT"

View 2 Replies View Related

General :: Download A File Using Command Line?

May 18, 2009

I want to download a file from the Linux command line. Basically I'm using ssh and I'm trying to download a file to my file system on my laptop. How can I do that from the command line?

View 3 Replies View Related

General :: Does The Latest Ubuntu Download (.iso File) Contain Latest Fixes

Aug 5, 2011

If I go to the website and download the ISO file is it the exact same one that was released in April or will it contain the latest patches (e.g. security fixes, etc) that have been release since then? If it doesn't I suppose I'll have to download the entire ISO file, install the OS, and then have another couple hundred MB to download which is not what I'd prefer.

View 2 Replies View Related

General :: Command Line - How To Create Multipart Rar File

Sep 4, 2010

How can I create multipart rar file in Linux using the official console rar client?RAR 3.90 Copyright (c) 1993-2009 Alexander Roshal 16 Aug 2009Shareware version Type RAR -? for helpI want a multipart rar with each part size being 150 MB.

View 1 Replies View Related

General :: Command Line - Create Multipart Tar File?

Oct 13, 2010

How to split a tar file into smaller parts at file boundaries?

How can I create a multipart tar file in Linux?

View 2 Replies View Related

General :: Ubuntu - Replace A File In Jar With Command Line ?

Oct 18, 2010

I have a jar, and I need to replace a class in it, at this moment, I can only open it with "archive manager" and then drag and drop the new compiled class into the jar, but I think this is really boring, if I can do with with just a command ?

View 1 Replies View Related

General :: One Line Command To Delete All But The Last N Revisions Of A File

Mar 31, 2011

What's a Unix/Linux one-liner that will let me delete all but the most recent N revisions of each file?

I've got a bunch of files with revision numbers as part of a legacy asset-management system:

bar.r7.js
bar.r8.js
bar.r9.js
bar.r10.js
bar.r11.js

[Code]....

I want to keep the last three of each, so in the above list the command would delete bar.r7.js, bar.r8.js and foo.r1.js.

View 1 Replies View Related

General :: File Matching Pattern On Command Line?

Sep 9, 2011

I've got files in a directory as follows:

1.png
1_thumb.png
1-1.png
1-1_thumb.png

[code]....

I want to list all the files that don't have a copy with the same filename with -1 somewhere in it. So, in the example above, the results would be 3.png.

NB: the file and its copy with "-1" in it will be the same filesize, if that helps.

View 2 Replies View Related

General :: Use The File-manipulation Tools For The Command Line?

Jan 24, 2010

find and use the file-manipulation tools for the command line.

View 2 Replies View Related

General :: File-manipulation Tool Used For On The Command Line?

Apr 9, 2010

What is file-manipulation tool used for on the Linux command line?

View 7 Replies View Related

General :: Send A File From One Computer To Another By Command Line?

Jan 27, 2010

I've got a Debian Squeeze computer on which the graphics have packed up, but the terminal in single user mode work perfectly fine.

There are a few files on this Debian computer that I want to transfer off, to a networked computer, but I have no idea how to do this.

The destination computer is a freshly re-setup Mandriva install, without (as yet) samba. I don't think it's necessary though. The Mandriva install works fine, has graphics, etc, but can't see the Debian Squeeze computer on the network, possibly because it's in single user mode, thus prompting the problem of how to transfer the files, using only a command line.

View 6 Replies View Related

General :: Insert Text In The Last Line Of A File With Sed Command?

Oct 4, 2010

I want to insert the text "DB dept" in the last line of passwd file which looks like this right now

Quote:

newuser:x:717:717::/home/sacharje:/bin/bash

And I want it to be like this:

Quote:

newuser:x:717:717: DB dept:/home/sacharje:/bin/bash

I tried to do that with sed but failed, I'd like to know the proper syntex with sed to achieve this.

View 7 Replies View Related

General :: File-manipulation Tools On The Command Line?

May 14, 2010

How do I find the file-manipulation tools on the command line?

View 5 Replies View Related

General :: Insert Text To A File Using Command Line?

Jan 28, 2010

I need to be able to edit a file from the commend line as I intend to script this operation, the file is called menu.lst The original is as below

Code:

titleUbuntu 8.04.3 LTS, kernel 2.6.24-24-generic
root(hd0,0)
kernel/boot/vmlinuz-2.6.24-24-generic root=UUID=b09feb23-5524-4ec4-862f-94700b968f64 ro quiet splash

[code]....

View 4 Replies View Related

General :: Command Line - Determine What File Occupies A Given Sector?

Apr 14, 2010

In Linux, I'd like to know how to find the file(s) if any which as using a particular sector on the hard drive (ext2/3). There is a similar question here regarding Windows, however I need a Linux command line solution (this is a headless system).

View 1 Replies View Related

General :: Curl - Download A File From A Website In Command Line?

Aug 9, 2011

I need to download a file from a website which has a URL formatted like:

[URL]

This redirects to a .zip file which has to be saved. There is also a need to authenticate based on username and password.

I tried to use wget, curl and lynx with no luck.

UPDATE:

wget doesnt work with redirection. It simply downloads the webpage instead of the zip file. curl gives the error "Maximum redirection exceeded > 50 " lynx also gives the same error.

View 1 Replies View Related

General :: Command Line - How To Create Multipart 7zip File

May 18, 2011

How can I create a multipart 7zip file in Linux using the p7zip console client? My console app is

7-Zip [64] 9.13 beta Copyright (c) 1999-2010 Igor Pavlov 2010-04-15
p7zip Version 9.13 (locale=C,Utf16=off,HugeFiles=on,4 CPUs)

View 1 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

Oct 17, 2010

How can I move a directory to the root of a drive via command line?

In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'

What is the equivilent in Linux?

View 8 Replies View Related

General :: TIP: Reducing PDF File Size From The Command Line With GhostScript (gs)?

Jan 14, 2011

I've spent hours trying to scan + shrink a multipage PDF documentlosing readability. This is the first time I've ever needed to do this! (I had to scan each page as ".jpg" in order to email and open on another computer, so I could not scan to PDF directly, which I think is why each page was so large; lower DPIs made the text too blurry.)I found this great tip on UbuntuGeek...but anyone can do this if GhostScript is installed:

View 1 Replies View Related

General :: Command Line - Create Directories That Don't Exist While Creating A New File?

May 8, 2010

I can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt

View 1 Replies View Related

General :: Command Line - Show Entire File Contents In Dialog?

May 20, 2010

I want to show the contents of a file on Dialog box for which I have use the "--textbox" dialog and "--tailbox" dialog.

But it doesn't show the whole contents of file, it only shows some of the data.

How do I get it to show the entire file data?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved