General :: How To Change Modification Time (Created Recursively)

Jul 1, 2009

I know there exists a touch command to change the date of the files. However, I want to change the files of a directory and the directory time. Is there a command like -R. Please provide me an example of the command?

View 4 Replies


ADVERTISEMENT

General :: Get The Last Change Time Of Directory Recursively

May 28, 2011

How can I get the last time any of the files in a directory or its subdirectories has changed?
e.g

Dir - changed 1/1/1
Sub Dir 1 - changed 2/1/1
Sub Dir 2 - changed 3/1/1
File 1 - changed 10/1/1
File 2 - change 5/1/1


The output for this for Dir should be 10/1/1 (File 1 was the last modified one). Getting the last file name to be modified is a bonus but isn't necessary.

View 3 Replies View Related

General :: Change A Files Modification Date "only" Without Changing The Time?

Oct 29, 2010

I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.

View 3 Replies View Related

General :: File Modification Time ?

Mar 30, 2010

The tail of my log is the following:

BUT:

So, how is it possible that some process writes to the file but file time modification still remains untouched?

View 2 Replies View Related

General :: Descending List Ordered By File Modification Time

Feb 28, 2011

How can I generate a list of files in a directory [e.g.: "/mnt/hdd/PUB/"] ordered by the files modification time? [in descending order, the oldest modified file is at the lists end]
ls -A -lRt would be great:[URL]
But if a file is changed in a directory it lists the full directory...so the pastebined link isn't good [i don't want a list ordered by "directories", I need a "per file" ordered list]
OS: openwrt..[no perl -> not enough space for it :( + no "stat", or "file" command]

View 3 Replies View Related

General :: Listing Files Recursively, Sorted By Time, Limited Head?

Mar 24, 2011

I'm trying to make a shell script that will list the 50 newest files in a directory with several subdirectories in. I've been trying with the find-command with no luck and now I've figured I should probably use ls. The problem is when I do "ls -lRt | head -50" it will do 1 directory at the time. It will not first make the full list and then sort it. This will display all items in first directory, sorted, then the newest directory will be sorted and displayed. So I figured I have to sort the whole process of ls before I limit the head. So this is where I am at now: ls -lRt | sort <something clever here> | head -50

Only doing a "|sort|" will sort it by name if I understand it right and I don't know how to solve it. Here's also my first attempt if that is of any interrest or help, this was limited by the change status time of files (so some lists got very large). These lists dit not get sorted by time and I could not find any way to do so.find $ftpDir -ctime $time -type f -print > $ftpFileLsAny help on this would be appreciated since I'm sort of stuck now. After reading manuals for all the options I can think of and still there's just a big blur in my head..

View 12 Replies View Related

General :: Chmod Change Only Directories Recursively

Mar 28, 2010

Is it possible to change only directories access permissions recursively with some linux command. I need to set x (access) permissions on directories but not execute on files. [URL]

chmod - change file access permissions
-R, --recursive
change files and directories recursively

View 2 Replies View Related

Red Hat :: Checking Last File Modification Time

Mar 5, 2010

I don't think there is a way of doing this with date or clock commands. But maybe they are writing to some file and I can take a look at the file's modification time. dmesg and /var/log/messages show nothing relevant.

View 1 Replies View Related

General :: Folder In Window Its Not Showing The Folder Time Created Time Stamp?

May 20, 2011

I was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system

View 7 Replies View Related

General :: Change A String Recursively In Files Located In Folders And Subfolders?

Jul 22, 2011

lets say I have a project that have generated lots of xml files. Though all these xml files point to a location with the text name TEXT15. I want to change all the files that containts TEXT15 and change it to TEXT16. This actually works for files in a folder but not recursively in all the entire files....perl -pi -c 's/TEXT15/TEXT16/g' ./* but I have many subfolders and within this more subsub folders....i just want to do this recursively.

View 2 Replies View Related

Server :: Copy A File Preserving Its Original Modification Time Using The Command?

Jun 8, 2010

It seems to be simple one, but couldn't figure out exactly. Say I copy a file preserving its original modification time using the command

Code:
cp -p file1 file2
Now later, I want to know when file2 was copied... How do I find it ?

View 1 Replies View Related

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

General :: Change Time (Advanced Eastern Time) On Slackware 8.1?

Mar 24, 2010

I have a linux (Slackware) machine and the time/date is like, June 23rd 2003, 10:00am (It's 11 here) and I am not able to set the time to have it correct. I change the timezome to Montreal but the time is still wrong.

Is there a way to force it to sync with my domain controler or even another online NTP server?

View 1 Replies View Related

General :: Change Umask For Files Created In Ext2/ext3

Oct 28, 2009

I have ext3 partition mounted on /mnt/shared/ as follows

Code:

Permissions above are of the actual mounted fs.

Goal is to have all files created on the fs
1) to belong to group 'users'
2) to have this groups permissions set to rw (rwx for directories) so that all users who belong to group 'users' have full read/write access to data and everyone else to have only read access.

Now because of setgid bit (s) in group permissions every file created has group 'users' and additionally setgid bit is set for directories. Because every users umask by default (on my system) is set to 0022 all created files will have permissions 644 for ordinary files and 755 for directories.

Net result of above means that users A and B who both belong to group 'users' won't be able to modify files created by the other.

So how can I make files created on the fs to be created always with umask 0002 WITHOUT changing default umask for users that is used elsewhere (like in their home directory) ?

View 1 Replies View Related

Ubuntu :: Change Folder Timestamp Recursively?

Sep 2, 2010

I was wondering if anyone knows how to change the timestamps of folders recursively based on the latest timestamp found of the files in that folder.

So for example:

Code:
jon@UbuntuPanther:/media/media/MP3s/Foo Fighters/(1997-05-20) The Colour and The Shape$ ls -alF
total 55220
drwxr-xr-x 2 jon jon 4096 2010-08-30 12:34 ./

[Code]....

View 1 Replies View Related

Red Hat / Fedora :: Change Folders To 775 And Files To 664 Recursively?

Feb 11, 2011

I need to change folders to 775 and files to 664 recursively, but this bash does not has find command (?). How can I change them recursively?

View 3 Replies View Related

OpenSUSE :: Get A Script Or App That Go Through The Samba Share Recursively And Change All File Names?

Apr 5, 2011

I have a samba share that was previously hosted by and accessed by Windows operating systems. As a result the filenames of all the files are not very command-line/linux friendly. I need to get a script or app that can go through the samba share recursively and change all file names to lowercase and replace spaces in the names with a ".", "_" or something.

View 9 Replies View Related

General :: Change Password For Newly Created User And Root User Using Graphical?

Jan 15, 2010

I am using mint 8 for a 2 weeks, I am noob to linux but I like Mint than any other linux distro which is great alternative to windows. I have a problem regarding password reseting.

1. My laptop automatically get logged in without asking user name and password.

2. I tried to change password for newly created user and root user using graphical way but it does not work.

2. I can perform administrator task using only OEM user which is default inbuilt user of mint.

How can make my laptop to ask password when mint get booted? How to change password for other users?

View 1 Replies View Related

Ubuntu :: Get Time Of Disk Formated Or Partition Created Or Installed?

Jan 13, 2011

I need to know when I have bought a notebook. I know I have formatted disk myself and partition created and Ubuntu installed.Is there any way I can get info when I bought a notebook? Like time of disk formatting, partitions created, Ubuntu installed

View 2 Replies View Related

Ubuntu :: Every Time Boot 10.04 On My Laptop The File ~/.xsession-errors Is Created ?

Jan 23, 2011

Every time I boot 10.04 on my laptop, the file ~/.xsession-errors is created.

I post here the content of my ~/.xsession-errors and the output of dmesg:

NB: I'm running 10.04 on a Dell laptop m101z.

~/.xsession-errors:

View 2 Replies View Related

General :: Ubuntu 10.10 - How To Change Time From Am To Pm

Jan 8, 2011

From gui, how can I change my time from am to pm? or How to do it using date command?

View 7 Replies View Related

General :: Change Sleep Time In Knoppix?

Nov 11, 2010

I want to transfer files from one comp to another. Its a few hundred gigs. Since the pc crashed i am using knoppix to access the drive and sharing over samba.

I'm using robocopy to copy the files. But i have a small problem with sleep. Every 30mins or maybe an hour knoppix goes to sleep and my transfer stops. How do i change the time or disable it completely? so i dont have to tap a key every 30mins

View 1 Replies View Related

General :: How To Change Hardware Time Of System

Jul 16, 2010

I need to change my hardware time and date as my hardware time don't right but I don't have network. I need the the commands and the steps.

View 5 Replies View Related

General :: Centos 5.x Time Change Automatically?

Jun 21, 2010

i am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc

View 2 Replies View Related

General :: DST Time Change For Positive Timezones Not Working?

Jan 11, 2010

I was doing some testing which is required for some of my products

Here is the strange behaviour i observed

First i did set the timezone to PST 2010 (which is less than GMT basically negative timezone)

zdump -v /etc/localtime |grep 2010
/etc/localtime Sun Mar 14 09:59:59 2010 UTC = Sun Mar 14 01:59:59 2010 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Mar 14 10:00:00 2010 UTC = Sun Mar 14 03:00:00 2010 PDT isdst=1 gmtoff=-25200

[Code]....

Note:in the above case when i did set time to 2:59:55 and said ok by then CEST became CET already. That could be the reason why DST is not happening.

I tried with few other positive and negative timezone configuration all the negative time zones resets back properly where as all the positive timezones doesn't

All my timezone files are up to date,i am using fedora 9

View 2 Replies View Related

General :: How To Change Threshold Time In Nagios Services

Jan 5, 2010

I have installed nagios in a CentOS vm and now its monitoring the local host, one remote host which is also a vm with CentOS 5.3 and one windows xp system. Is there any option for me to change the threshold time for the services given? For e.g. I had a service of current_load which comes as a default plugin while installing nagios itself. What should I do to change the threshold value of the current_load so that I might get the warning or error alert some time earlier as it was now.

View 5 Replies View Related

Ubuntu :: Change File Permissions That A Program Has Created?

Nov 16, 2010

I have a program what creates files with a certain user and group as owner. How do I make files created by this program belong to a group I specify myself (I know I can chown and chgrp and chmod but I want the files to have a certain group from the beginning). Also I like to be able to specify permissions for these files.

Btw. it's not my own program so cant change the source code of the program to solve my problem.

View 4 Replies View Related

Software :: Change The Permissions Of The InfoBright Created Files?

May 12, 2010

I have a NFS shared directory between two linux machines, one with RedHat3 and one with CentOS 5.4.On the CentOS 5.4 machine I have InfoBright installed. In that directory, I want to create files with InfoBright and then to select from them with MySQL on the RedHat3 machine.The problem is that InfoBright creates files with 660 permissions and mysql with 666, and I cannot SELECT from any file due to the fact that is not "readable by all"(this is the actual error). I can change the permissions manually, but I need them to be created with 666 permissions, so that I can import them automatically on the other side with a script.Is there any way to change the permissions of the InfoBright created files?

View 3 Replies View Related

General :: Authentication Failure In LDAP After Modification

Jun 3, 2011

I Configured LDAP Server on ubuntu Server 10.04 ,(using url ldap) and Client also it's working fine. After that I changed to ssl encryption and create certificate in server side. Now it's not authenticating from server it's shows Incorrect Password, but I can login though terminal if I am root user ,then it not ask any password it's logon to ldap user. After I changed to ldap server to ssl encryption and made one changes in client side uri ldaps://ip-address/ (/etc/ldap.conf).

View 3 Replies View Related

General :: AutoMySQLBackup Weekly Backup Modification?

May 4, 2011

I'm using AutoMySQLBackup [URL] script to backup mysql db from several server.I need little help from you who is guru in scripting. I would like to take weekly backup after every 1 week and not every week. i.e. on every 14 days. This is the weekly backup portion of the script:

Code:

# Weekly Backup
if [ ${DNOW} = ${DOWEEKLY} ]; then
${ECHO} Weekly Backup of Database ( ${DB} )
${ECHO}

[code]....

View 4 Replies View Related







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