From owner-freebsd-questions@FreeBSD.ORG Sat Jun 7 08:48:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD0921065671 for ; Sat, 7 Jun 2008 08:48:01 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 50FD28FC29 for ; Sat, 7 Jun 2008 08:47:59 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id SAA23319; Sat, 7 Jun 2008 18:47:51 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 7 Jun 2008 18:47:50 +1000 (EST) From: Ian Smith To: Georgi Tyuliev In-Reply-To: <20080607010402.8E1A61065758@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org Subject: Re: change the file date and time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2008 08:48:01 -0000 On Fri, 06 Jun 2008 20:25:41 +0300 Georgi Tyuliev wrote: > 1. How to mount Sony Ericsson k750i mobile phone with FreeBSD 7.0 ? No idea. > 2. How to change automatically the file attributes (for example 'date') > of large number of files? For modification and/or access times, use touch(1) For user:group ownership, use chown(1) For file modes, use chmod(1) > For example: I have taken many photos with my Sony Ericsson k750i mobile > phone and > the exact time end date is accessible (e.g. through F3 of the midnight > commander), > but very often when copying the jpg's the file attributes change. To preserve user/group ownership and modification/access timestamps on files, use cp(1) with the -p flag. Maybe mc doesn't do that correctly on copying, though it should for a move, assuming that it uses mv(1) cheers, Ian