Red Hat / Fedora :: How To Find Out Who Has Modified/edited A File

Jan 27, 2011

I use RadHat Linu5.We usually log in to LINUX via putty (remote). Very often many people use the same user and password to log in.I wonder how to tell who has edited/modified a file?

View 9 Replies


ADVERTISEMENT

Software :: Find Out Who Has Modified / Edited A File?

Jan 27, 2011

I use RadHat Linu5.

We usually log in to LINUX via putty (remote). Very often many people use the same user and password to log in.

how to tell who has edited/modified a file?

View 9 Replies View Related

Programming :: Script To Find Out Modified Date For Particular File

Jul 9, 2010

I am new to Scripting. I am trying to find out particular file is modified in last one hour or not in script and then if that file is modified in last one hour i need to copy that file to another directory.Can any one please provide me how to check the file is modified in one hour or not?

View 3 Replies View Related

Ubuntu :: Find Last Modified File In Current Directory And All Subdirectories?

May 28, 2010

I need to write a script that is given a directory as an argument, and it prints the last modified file from that directory and all its subdirectories.

for example:

$ newest /usr/etc
--> /usr/etc/httpd/httpd May 28 12:16

If I had to do it only for the current dir, it would be easy...I'd probably use "ls -lt" and then show only the first line...

View 1 Replies View Related

General :: Find And Sort Results By Date Modified

Jun 7, 2011

so I was wondering how I could do a simple find which would order the results by most recently modified. Here is the current fine I am using. (I am doing a shell escape in php, so that is the reasoning for the variables. find '$dir' -name '$str'* -print | head -10

How could I have this order the search by most recently modified. (Note I do not want it to sort 'after' the search, but rather find the results based on what was most recently modified)

View 4 Replies View Related

General :: Find The Directory With Latest Modified Content?

Sep 29, 2010

how to find the latest modified directory. I know that the command 'ls -rtl' gives the latest modified file/directory at the end. But my specific requirement is: If I create two directories named dir1, dir2 in the same order. so now my latest modified directory is "dir2". Now inside each directories, I created a file. Now in the last, I modify the file in "dir1". So overall, the content of dir1 got modified recently. If I use the command 'ls -rtl', this will still show dir2 as latest, as it is created recently. But I want the directory in which any internal content at any sub-hierarchy modified recently. so with what linux command I'll get this latest modified directory (dir1)?

View 3 Replies View Related

General :: Find All Files Modified In Date Range

Apr 30, 2010

I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.

View 2 Replies View Related

OpenSUSE Install :: Integrate The Two Dir Into The Edited File?

Jul 28, 2010

I unpacked a .zip file, and it gave me two directories. Which file must I edit, and how do I integrate the two dir into the edited file?

View 3 Replies View Related

Ubuntu Installation :: Edited File Now Cannot Update

Oct 6, 2010

Last week I attempted to install some software on my computer (on ubuntu) and I edited a couple of files now I can't update ubuntu. I get 2 error messages:
1. Not all updates can be installed.
- I select partial update
2.Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade:
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu
This is most likely a transient problem, please try again later.
How can I resolve this issue. I don't remember what files I edited to reverse the damage.

View 1 Replies View Related

General :: Save A File Edited With VI Editor?

Feb 13, 2011

How do I save a file edited with the VI editor? How do I get help information on this program?

View 1 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

General :: Shell Script That Adds Users Name To A File When The File Is Modified?

Mar 30, 2010

I need a shell script that will add the users name and date to a file when the user has modified the file, these files are within a group and only accessible to this group. But we need a way for people in the group to know who and when the file was last modified.

View 1 Replies View Related

General :: BashSR File Edited Wrongly - Sudo Command Not Found

Sep 20, 2010

I had edited the bashsr file wrongly in my ubuntu while trying to put a "export" command in bashsr for javac. Next when i am writing sudo , its saying :
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable. sudo: command not found

View 3 Replies View Related

Programming :: How To Know A File Is Modified

May 3, 2011

I want to know what system call is used in linux C programming is used to know whether a file is modified. I know that make utility compiles the file using the modification dates only. I want know how to find whether the file is modified or not.

View 4 Replies View Related

Ubuntu :: Prevent File From Being Modified?

Mar 1, 2011

In /etc/default/rcS I have set FSCKFIX=yes. This solves a recurring 'no init found' problem that prevents my machine from booting. Occasionally however, the setting reverts (by itself somehow) to FSCKFIX=no. Thus my machine cannot boot. Is there a way that I can prevent this file from being changed?

View 1 Replies View Related

Red Hat / Fedora :: Fedora Shell Scripting \ "Find In Curent Folder For Files, And It Copy First File He Find With Name Gived By User?

May 18, 2011

shell scripting in Fedora14I want a script"Find in curent folder for files, and it copy first file he find with name gived by user, if name already exist then echo error message and finish"command usage " bash scriptname copyASname"

smthing like Code: #!/bin/bash
for files in /home/user/*
do

[code]....

View 1 Replies View Related

General :: Smbclient Check File Modified Before 'get'

Oct 28, 2010

I checked the smbclient man but could not find any switch to us in combination with 'get' to check if the file has been modified before download.

View 1 Replies View Related

Ubuntu :: Search For File Modified At Specific Time

Aug 20, 2010

How do you find a file modified March 17, 2010, between 3:30 pm and 4:05 pm? I know that I must be missing something somewhere.How do you search for info like this? I goggled "search files time Linux" and got about 38,300,000 results. I looked through the first four pages and did not see what I was looking for.Do I need to calculate how many minutes ago that is and give that to find.I really want to do this in the GUI so that I can operate on the files found without typing in so much stuff.

View 1 Replies View Related

General :: Modified The .rhosts - The Server Is No Longer To Accept Rcp File

Jan 12, 2011

I have a Redhat server that it is allowed rcp file from remote server, it is strange that after I modified the .rhosts, the server is no longer to accept rcp file , even I use other user to rcp files , the error is still "Permission denied", can advise what is wrong ? what daemon that I can try to restart ?

View 5 Replies View Related

Ubuntu :: Bluefish Annoying Message - File Has Been Modified By Another Process

Jan 27, 2010

I'm using Bluefish on my laptop to modify files on my desktop web server. The machines are networked with samba. Every time I save the files, I'm prompted with this window that says: File has been modified by another process. It gives me the option to cancel or overwrite. It's the only program that does this. I can click on overwrite and that works, but it's pretty annoying.

View 1 Replies View Related

Fedora :: Conf Files Couldn't Be Edited?

Jul 29, 2011

I installed vsftpd on my fedora 15 system. I tried to edit vsftpd.conf through gedit

(as root su - command). It showed an error message. I couldn't edit this file. Is there any way to revert my system to gnome 2.30(which is better to work ) from gnome 3

View 4 Replies View Related

Ubuntu :: 10.04 - 'Date Modified' Changed On File Copy To NTFS Partition?

Jul 6, 2011

Prior to making a fresh install of 10.04, I made a back up of all my documents by copying them to a NTFS partition. I did this my selecting files in File Browser, then right clicking and selecting the Copy command.

When I came to move the files back after the fresh install, I was mortified to find that all the file modification dates had changed to the date I copied them! I've lost all the original file dates, which was the principal way I sorted my files. I guess there's no way of getting it back? It seems that Linux does not store File Creation dates either so I'm stuffed.

View 3 Replies View Related

General :: Write Shell Script To Check The Modified Date Of A File ?

Jun 17, 2011

I have two linux servers, they are backup together.

1. Server 1 have 3 files with name: file1, file2, file3 in the path: /etc/sysconfig/network-script/.

2. Server 2 have 3 files with name and path are the same as server 1.

- How to make a script to copy 3 files at server1 to overwrite on server2. But before overwrite, this script will check and compare the last modified date of these 3 files(on server1 and server2). if the modified date of file1, file2 or file3 on server1 is newer than 3 files on server2 then overwrite process will do, if not, will do nothing.

- see my script as below: it works find now but just overwrite. not check last modified date.

View 1 Replies View Related

Ubuntu :: Accidently Modified My File System Of Some Partition In My Hard Disk From Ntfs To Fat

Apr 16, 2011

i accidently modified my file system of some partition in my hard disk from ntfs to fat...i havnt formatted the drive...but now i cannot mount this partition...

View 1 Replies View Related

Fedora :: Anaconda Has Modified A Partition That Is Now Unreachable?

Jul 31, 2009

I have a big pb after installing F11 : my partition containing all my photos is now unmountable. Before installing F11, it was in ext3 filesystem

During installing F11 on sda1 (first hard drive), I noticed some strange error messages like "volume doesn't exist" or something like that.

now, when I try to mount my partition of my third hard drive, i get this :

Code:
[root@vincent vincent]# mount /dev/sdc1 /home/vincent/sdc1
mount: type inconnu de systme de fichiers 'lvm2pv'
which means "mount: filesystem type unknown 'lvm2pv' "

[Code]......

View 10 Replies View Related

Fedora :: Script For Collecting Metadata On Modified Files

Nov 30, 2010

I have a simple scripting question. I am trying to list all files that have been modified in the last day and then collect metadata on those files. This command is going to be run on a number of nodes via ssh so I would like to append the hostname to start of each line (the below example has blade1 as the hostname). As you can see the loop is splitting the ls command out onto a separate line for each value. What I need to do is keep the `ls -ld` output all on one line and have the hostname echoed in front of each line.

for i in `find /var -mtime -1 | xargs ls -ld`; do echo `hostname` $i; done
blade1 drwxr-xr-x.
blade1 2
blade1 user
blade1 group
blade1 4096
blade1 Nov
blade1 30
blade1 08:55
blade1 /var/cache/gdm/user

View 8 Replies View Related

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

Red Hat / Fedora :: Cannot Find Tomecat .jar File

Jan 13, 2010

I've downloaded Tomcat it's in the same directory as eclipse. The problem is When I'm creating a new project it asks for this

Code: lib/jasper-el.jar.file

and I've search in whole of Tomcat 6.0.20 directories and files I can NOT see anywhere.

View 2 Replies View Related

Red Hat / Fedora :: Can't Find The File System

Jul 24, 2010

while organizing my HD (windows) i ran across a file that i couldnt open. i check the file type, and the only thing it said was 'file'..so i made it an image and mounted it on my linux VM (cant seem to find, or mount the host OS HD) ..but i dont know the command to find out what's the file system type so i can read whats in it (i'm thinking its a registry bac-up from windows? but it's like 4g's..the modification date is from 2008..so i'm curious to find out what i saved)

View 1 Replies View Related

Fedora :: Could Not Find The File System Drv/root

Oct 11, 2009

well i was messing with the Gparted live disk and i deleted a small partition of about 6 megs (yes megs). trying to be efficient doing some cleanup of course. but when i rebooted my Fedora 10 i get the black screen saying," could not find the file system. /dev/root". ok, i am useing the fedora 10 live cd now. can i copy that file to my hard drive from the cd? or do i need to reinstall Fedora?

View 1 Replies View Related







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