General :: Viewing Multiple Files With The Less Command?

Apr 14, 2010

When we view multiple files using less, how to go on to the next file? I gave these two commands:

Code:

[root@localhost log]# ls -lt boot.log*
-rw------- 1 root root 0 Apr 11 04:02 boot.log
-rw------- 1 root root 0 Apr 4 04:02 boot.log.1
-rw------- 1 root root 0 Apr 1 19:14 boot.log.2
-rw------- 1 root root 0 Mar 21 04:02 boot.log.3
-rw------- 1 root root 0 Mar 14 04:02 boot.log.4
[root@localhost log]# less boot.log*

This is what I got:

Code:

boot.log (file 1 of 5) (END) - Next: boot.log.1 <RETURN>
(END) - Next: boot.log.1

I could not view boot.log.2.

View 3 Replies


ADVERTISEMENT

General :: Run Same Command On Multiple Files With Same Extension?

Nov 10, 2010

how to run a command on all files with the same extension in a directory like this:

Code:

tex breqn.dtx; tex empheq.dtx; tex flexisym.dtx; tex mathstyle.dtx; tex mathtools.dtx; tex mhsetup.dtx; tex xfrac.dtx;

but in a simpler manner? I found this: Code: find . -type f -name *.dtx -exec tex {} ; but isn't there something simpler?

View 4 Replies View Related

General :: Command Syntax To Modify Multiple Files

Sep 26, 2009

I have a program I use, rrdtool. I need to modify a ds value on every file at the same time. However, using a wildcard (*) to try this operation of all files does not work and instead only updates one file.

Here is the command syntax:
rrdtool tune <file> --maximum traffic_in:100000000000 && rrdtool tune <file> --maximum traffic_out:100000000000
So, how can I do this on every file in the directory?

View 5 Replies View Related

General :: Inserting Multiple Files To Mysql On Command Line?

Mar 5, 2011

I am using ubuntu and mysql.I have a list of many .sql files, like 1.sql, 2.sql, 3.sql ... 100000.sqlI need to insert them into the database mysql mydb < *.sqlGives me: -bash: *.sql: ambiguous redirect

View 2 Replies View Related

General :: Viewing Files That Have Already Printed?

Oct 26, 2010

I'd like to know how to see which files have been printed on the printer. I can see which print jobs have run and who submitted them using the following command:

Code:
$ lpstat -W completed -o
but it doesn't show me the names of the files that printed.

Is there a way to set a retention policy to have it hold the job in the queue even after it's finished printing? Or a command to view the details of jobs that have already run? I'm looking for something similar to the output of the lpq command.

View 1 Replies View Related

General :: Viewing Backup Files But Only In Some Directories?

Oct 26, 2010

I backed up my Laptop with a script, as follows:

Code:

#! /bin/bash
sudo
growisofs -Z /dev/dvd -dvd-compat -r -v /home

I then installed a new version of Ubuntu 10.04 from disk and copied the files in /home from the cd to the hard. I am able to open, view etc. all the files in most directories except those in /home/documents. There are text files created by gedit, OOWP and several PDF files. I cannot open or view these files, depending: gedit and pdf files gets a Err.Msg. "Don't recognize file type" (it is clearly marked PDF) . The OO files look like rows of 'high bits' and a dialogue box opens giving me the options to change Char. Set, Font, Language, Paragraph break.

View 6 Replies View Related

General :: Viewing All Crontab Files On A System?

Nov 16, 2009

Is there a way to view all the crontab files, owned by root, users, and other system accounts, that exist on a system simultaneously rather than having to go the individual accounts? The distribution in question here is the Debian 4.0 release.

View 2 Replies View Related

General :: Editing/viewing Password Files?

Aug 9, 2009

I created a password file for use with ncsa_auth in squid. Firstly, is there a way to view the passwords in the file or are they all encrypted? Secondly, is there a way to get squid to reauthenticate the user after 24 hours?

View 9 Replies View Related

General :: Firefox Viewing Text Files In External Editor

Mar 10, 2011

I would like to make Firefox view text files not in its internal editor, but in the external editor (namely EmacsClient).Is it possible to change this default behavior of Firefox?I beg your pardon for being inconcise, I'll try to state the matter once again. First thing to mention is that I use the Linux version of Firefox. That means that unlike the Windows version the contents of the application bindings dialog is very scarce.

When I click on the link to a text file (be it remote or local) by default Firefox opens it in the internal browser. I've tested, somehow it looks at file extension - when for example I make a file with .mpg extension, the behaviour is as it should be - the dialog with "Open With..." and stuff. When the file has unknown extension (unknown to /etc/mime.types), in my case it's .out, pure text format - the default behaviour is to open it in a Firefox window.

View 2 Replies View Related

Ubuntu :: General Software For Viewing Huge .txt Files (over 10 Megas)

May 19, 2010

Is there any software in Linux to view huge .txt files, say, over 10 megas? I'm now using default "gedit", version 2.28.0, which seems to not be able to open huge .txt files. It's the same case for Windows default .txt browser, but in Windows, "Win Word" seems to work fine. software under Linux to browse huge .txt files?

View 5 Replies View Related

General :: Exim Main Log - Getting '+'symbol (-rw-r-----+) While Viewing The File Permission Of Exim_mainlog Files

Jun 25, 2010

I am getting '+'symbol (-rw-r-----+) while viewing the file permission of exim_mainlog files. what the reason for this '+' symbol. -rw-r-----+ 1 mailnull mail 648448492 Jun 25 10:27 exim_mainlog

View 2 Replies View Related

Ubuntu :: Find Multiple Files In The Command Line?

Mar 2, 2010

command line, I have a server for work that I ssh into and I need to be able to find multiple files (they have the leading text just the date identifier changes) and then zip the files (with bzip) them and then finally scp(Secure copy) them to another server.

These files are always in the same directory and this is a daily task and just want to make into a script that I run once I am logged into the remote server.

View 4 Replies View Related

Ubuntu :: Move Multiple Files Via Command Line?

Sep 15, 2010

I liked the idea of the "cosmos" screensaver/desktop, but wanted to add my own pictures to the application. I navigated to /usr/share/backgrounds/cosmos and tried to drag and drop. I quickly found that I did not have permission to do this.

I googled my problem and found some command line tutorials telling me to sudo cp. My problem is that I have about 30 pics that I want to move in there, and I don't think I can just move the directory, they have to be in that folder as the pictures themselves.

I don't really feel like typing the cp line multiple times with multiple randomly named image files.

Is there a way to have the command line cp all of my files from one directory to another?

View 4 Replies View Related

Ubuntu :: Command To Split A File Into Multiple Files?

Nov 22, 2010

I have a log file on ubuntu 10.04 that has 500 lines of log data in it. What command could I use in a terminal to split the single 500-line file into generate ten files each with 50-lines of log files each?

View 2 Replies View Related

General :: Rename Multiple Files In Multiple Directories/subdirectories Recursively?

Aug 23, 2010

I am to rename all the files within a directory (which contains multiple subdirectories) recursively without invalid characters.

I tried the coding posted above.

find . -type f -printf '%p
' | while read file; do
oldfile=$(basename "$file")
newfile=$(echo "$oldfile" | sed 's/[^A-Za-z0-9_.]/_/g')
if [ ! "$newfile" == "$oldfile" ]; then
echo mv "$file" "${file%$oldfile}$newfile"
code....

but I get an error on both of them stating "find: bad option -printf find: [-H | -L] path-list predicate-list"

View 9 Replies View Related

OpenSUSE :: Count Lines In Multiple Text Files From Command Line?

Apr 27, 2010

I want to (from the command line) be able to counte lines in a bunch of files of a specific type in a folder and all its sub-folders. How would I do this?

View 1 Replies View Related

Ubuntu :: Command Line - Find And Replace Text Within Multiple Files?

Aug 28, 2010

I'm pretty sure this is doable from the command line, but my CLI skills have degraded a lot since my pre-Y2K admin days. The goal is to search all the files in the directory for a very long string of text and replace it with another string of text. The text being searched for is my Google Adsense code (which will be stripped from my website) and it will be replaced with a placeholder so I can easily tack something else in there in the future.

Seeing how I have that long snip of code on about 100 pages, automating the process would make life easier.
If I was searching for a single word, I can see ways to do this.
If I paste the code I'm searching for into a text file, is there a way to:
find (contents of oldstring.txt) and replace with (contents of newstring.txt)?

View 9 Replies View Related

General :: Viewing ONLY The "header" Of The Top Command?

Feb 6, 2011

I'm trying to create a cron job that displays ONLY the "header" from the Top command. So, I'd like to see this.

Code:
top - 09:14:09 up 270 days, 3:05, 1 user, load average: 5.65, 4.74, 4.53
Tasks: 425 total, 2 running, 420 sleeping, 0 stopped, 3 zombie
Cpu(s): 35.6% us, 8.6% sy, 0.0% ni, 51.7% id, 4.1% wa, 0.0% hi, 0.0% si
Mem: 8306036k total, 6798252k used, 1507784k free, 475028k buffers
Swap: 15626944k total, 5044k used, 15621900k free, 5283860k cached

I've got the cron set up to do exactly what I want. It runs Top and uses sendEmail to shoot the information to me via email once every morning. It sends the whole output and that's great.

Problem is, when it sends to my mobile email, I can't read it. The formatting is FUBAR'ed so I'd like to see ONLY the header.

How can I make this happen? All I need is the command to display the header of Top, nothing more, nothing less.

View 3 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

Fedora :: F13 Viewing Pdf Files In Chromium?

Sep 21, 2010

f13 chromium - when trying to dsiplay pdf files - says no plugin is available - but there seems no pliug is available - what are others doing ?

View 1 Replies View Related

Red Hat / Fedora :: PHP Files Want To Download Instead Of Viewing Them?

Mar 22, 2010

when I try to view php files on my linux box, they want to download instead of viewing them. I configured apache for php as the manual said but for some reason it doesn't want to parse the php. the http.conf file may need to be changed, that the line "AddModule mod_php4.c" was missing in the conf, however the AddModule and ClearModuleList directives no longer exist in the newer versions of Apache. These directives were used to ensure that modules could be enabled in the correct order. The new Apache 2.0 API allows modules to explicitly specify their ordering, eliminating the need for these directives.

View 8 Replies View Related

Fedora :: Viewing Windows Explorer Files?

Aug 29, 2009

how do I view files saved under windows internet explorer in linux. have tried mozilla firefox and here is what I get. is it possible to view the files as displayed in ie?

m: <Saved by Microsoft Internet Explorer 5>
Subject: installing rpm without yum no internet yet - FedoraForum.org
Date: Tue, 25 Aug 2009 00:23:04 -0400
MIME-Version: 1.0

[Code].....

also don't have internet access under linux as yet. wh at modem would you guys recommend that you know will work with linux? using dual boot ibm with windows xp h ome and linux 10

View 2 Replies View Related

Ubuntu :: Viewing Pdf Files In Chromium-browser?

Jan 14, 2011

In Ubuntu 10.04, installed Chrome from the Ubuntu repos: chromium-browser 8.0.552.224-r6859According to about:plugins mozplugger is supposed to be handling pdf, ps, ppt mime types, but for all of these I get a black browser window saying "Missing Plug-in".I'd like to view these filetypes inside the browser using either adobe reader (8.1.6) or evince (or even just gv).Here is an excerpt from /etc/mozpluggerrc:

Code:
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file

[code]....

View 5 Replies View Related

Ubuntu :: Viewing Log Files - Permission Denied?

Jun 1, 2011

I'd like to view the log files, but when I try to view a log (such as daemon.log), I receive a message that says "You don't have permission to read the file." What do I need to do to have permission? (This is my computer. I've been an Ubuntu user for less than a year

View 3 Replies View Related

SUSE :: Opensuse 11.1 Viewing Unmounted Files?

Feb 2, 2009

opensuse 11.1 kde it keeps showing my partitions even the ones i have not mounted?

View 2 Replies View Related

Software :: Editing And Viewing Contents Of Files In /bin?

Jan 1, 2011

i just want to know,how can we edit the files of /bin folder. for ex: we have a file named mkdir which is being executed when we run the mkdir command at the terminal. I just want to read the code inside that mkdir file. That binary file has to be converted to text,which should be human readable.

View 6 Replies View Related

Ubuntu :: Prevent Other Administrator Accounts From Viewing Files?

Mar 9, 2010

I just noticed that even if I remove read and write permission for my files, another user can access those files if they use 'sudo'. The ls -l for the folder containing my file (let's call is myfile') looks like this.

"
Code:
-rw------- 1 username groupname 43 2010-03-09 20:23 myfile
"

I logged into another account I have made for myself (which had admin privileges) and then did

Code:
sudo nano /username/home/myfile

and ... the file was opened and I was able to read it. So what's the point of having user permissions if someone can bypass them by using sudo?

View 9 Replies View Related

Software :: Cplay Not Viewing / Playing .flac Files?

Feb 12, 2011

I just installed cplay on Slackware 13.1 but I ran into a problem and I am unable to figure it out on my own:

When browsing folders in cplay I went into a folder containing only .FLAC music files.. it was empty! I am unable to play any of these with cplay

If I cd into that folder through the terminal and play the file using ogg123 it works fine.. cplay is just a front-end to mpg123 and ogg123... I don't know why it isn't reading these files..

I dont know where to start... I was unable to find any documentation of config file for cplay (not even a slackbuild for it.. I installed it from source which I extracted from a Debian package)

View 3 Replies View Related

General :: Using Multiple Epstopdf Command?

Jan 6, 2011

I've installed epstopdf and can get it to work for one file at a time. But I have about 100 *.eps files which I want to convert to *.pdf using this command. How could I get linux to find all *.eps files in the directory and repeat the command for each converting them to *.pdf?At the moment the command that works for me is, $ epstopdf file.epsAnd works for one file

View 5 Replies View Related

Debian Multimedia :: Sound Distorted While Viewing Online SWF Files

Jul 9, 2011

I have distorted sound when viewing SWF files on browsers. Tried both chrome and iceweasel. I have a Dell XPS with debian testing (64 bit), alsa is 1.0.23. Sound is working properly when playing formats other than swf.

View 1 Replies View Related







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