Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freebsd-questions Digest, Vol 303, Issue 11

0 views
Skip to first unread message

freebsd-ques...@freebsd.org

unread,
Mar 26, 2010, 8:00:25 AM3/26/10
to freebsd-...@freebsd.org
Send freebsd-questions mailing list submissions to
freebsd-...@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
or, via email, send a message with subject or body 'help' to
freebsd-ques...@freebsd.org

You can reach the person managing the list at
freebsd-que...@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-questions digest..."


Today's Topics:

1. Re: ooops ! 'ls' & "last modified" column (daniele)
2. Creating multiple directories simultaneously (Jerry)
3. Re: Creating multiple directories simultaneously
(Svein Skogen (Listmail Account))
4. Re: Creating multiple directories simultaneously (Nuno Marques)
5. Re: Creating multiple directories simultaneously (Daniel Bye)
6. Re: Creating multiple directories simultaneously (Jerry)
7. Re: Creating multiple directories simultaneously (Jerry)
8. Re: Creating multiple directories simultaneously
(Jaroslaw Miszczak)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Mar 2010 11:24:14 +0100
From: daniele <gl...@live.com>
Subject: Re: ooops ! 'ls' & "last modified" column
To: freebsd-...@freebsd.org
Message-ID: <BLU0-SMTP9256F1513...@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 03/26/10 02:37, Olivier Nicole wrote:
> Hi,
>
>> I just finished installing FreeBSD on a "machine" whose CMOS time is not
>> set to UTC.
>>
>> The System time is reported correctly (using 'date') but, suprisingly
>> (?), 'ls -la' reports that, among others, the files belonging to "the
>> skeleton" in the user home have been modified... in the future (1 hour
>> later) !
>
> Wait one hour :)
>
> I had a stange behaviour with some release of FreeBSD (around 7).
>
> We are 7 hours ahead of UTC; after a fresh install I usually do a
> system upgrade to be sure to be up with every patches.
>
> It occured to me a couple of times that the installworld would not
> work, even though I adjkerntz before. The only way I had was to change
> the CMOS clock to the local time and change it back to UTC aftergive
> installing world.
>
> Of course, after 7 hours the problem would disappear.
>
> Bests,
>
> Olivier
Hi,

Thank you for your interest in my question and related answer :-)

I did not have any problem during the installation or the following
start-up. I just noticed those "strange" timestamps.

But I think that now I understand the behaviour of the installation
process (at least in FreeBSD 8.0-Release) as for the timestamps.

Basically it is simple: when booting for installation, the system
silently (?) thinks the CMOS time is set to UTC and uses the user input
for setting _a_ local time. Then it "happens" this local time is the
timestamp for _some_ newly created files.
After all files have been copied the actual configuration of the clock
occurs so that the newly created system will report the correct local time.
Later, when the new system boots up, in some cases one can find
timestamps in the future for _some_ files and a correct local time.

:-)

If something (but the local time :-)) is not correct , feel free to send
a feedback

d

------------------------------

Message: 2
Date: Fri, 26 Mar 2010 07:12:48 -0400
From: Jerry <freebs...@seibercom.net>
Subject: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <20100326071...@scorpio.seibercom.net>
Content-Type: text/plain; charset=UTF-8

I could have sworn that I saw a method of creating several directories,
actually a parent direct and several sub-directories simultaneously;
however, I cannot fine the documentation any longer.

Assume I want to create a directory: FOO with three directories under
it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}
and several other variants and they all failed. I could easily write a
simple script to accomplish it; however, I thought I could do it
directly from the command line.

--
Jerry
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

The only real way to look younger is not to be born so soon.


Charles Schulz, "Things I've Had to Learn Over and
Over and Over"


------------------------------

Message: 3
Date: Fri, 26 Mar 2010 12:15:04 +0100
From: "Svein Skogen (Listmail Account)"
<svein-l...@stillbilde.net>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <4BAC9738...@stillbilde.net>
Content-Type: text/plain; charset=UTF-8

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26.03.2010 12:12, Jerry wrote:
> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
>
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}
> and several other variants and they all failed. I could easily write a
> simple script to accomplish it; however, I thought I could do it
> directly from the command line.
>

did you try "mkdir -p dirtest/dir1 dirtest/dir2 dirtest/dir3" ?

//Svein

- --
- --------+-------------------+-------------------------------
/"\ |Svein Skogen | sv...@d80.iso100.no
\ / |Solberg Østli 9 | PGP Key: 0xE5E76831
X |2020 Skedsmokorset | sv...@jernhuset.no
/ \ |Norway | PGP Key: 0xCE96CE13
| | sv...@stillbilde.net
ascii | | PGP Key: 0x58CD33B6
ribbon |System Admin | svein-l...@stillbilde.net
Campaign|stillbilde.net | PGP Key: 0x22D494A4
+-------------------+-------------------------------
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle: SS16503-RIPE
- --------+-------------------+-------------------------------
If you really are in a hurry, mail me at
svein-...@stillbilde.net
This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.
- ------------------------------------------------------------
Picture Gallery:
https://gallery.stillbilde.net/v/svein/
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuslzgACgkQODUnwSLUlKT2hwCaAuTsd/NUacDAMYWW6vYFNl2S
qykAnRT8ox6UMTO1OsnCvVfg18CF/Qi7
=nPew
-----END PGP SIGNATURE-----


------------------------------

Message: 4
Date: Fri, 26 Mar 2010 11:22:06 +0000 (UTC)
From: Nuno Marques <nmar...@di.fc.ul.pt>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <hoi5cu$9og$1...@dough.gmane.org>
Content-Type: text/plain; charset=UTF-8

On Fri, 26 Mar 2010 07:12:48 -0400, Jerry wrote:

> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
>
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}
> and several other variants and they all failed. I could easily write a
> simple script to accomplish it; however, I thought I could do it
> directly from the command line.

try mkdir -p foo{,-1,-2,-3}

------------------------------

Message: 5
Date: Fri, 26 Mar 2010 11:32:58 +0000
From: Daniel Bye <freebsd-...@slightlystrange.org>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <2010032611...@catflap.slightlystrange.org>
Content-Type: text/plain; charset="us-ascii"

On Fri, Mar 26, 2010 at 07:12:48AM -0400, Jerry wrote:
> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
>
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}

Almost.

$ mkdir -p FOO/{foo-1,foo-2,foo-3}

--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100326/4fb0beca/attachment-0001.pgp

------------------------------

Message: 6
Date: Fri, 26 Mar 2010 07:36:51 -0400
From: Jerry <freebs...@seibercom.net>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <20100326073...@scorpio.seibercom.net>
Content-Type: text/plain; charset=UTF-8

On Fri, 26 Mar 2010 12:15:04 +0100, Svein Skogen (Listmail Account)
<svein-l...@stillbilde.net> articulated:

> did you try "mkdir -p dirtest/dir1 dirtest/dir2 dirtest/dir3" ?

Yes, and of course it works. I just thought that I had once seen a
faster method of accomplishing the same feat. Perhaps I was mistaken.

--
Jerry
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

The meek shall inherit the Earth.
(But they're gonna have to fight for it.)


------------------------------

Message: 7
Date: Fri, 26 Mar 2010 07:44:56 -0400
From: Jerry <freebs...@seibercom.net>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID: <20100326074...@scorpio.seibercom.net>
Content-Type: text/plain; charset=UTF-8

On Fri, 26 Mar 2010 11:32:58 +0000, Daniel Bye
<freebsd-...@slightlystrange.org> articulated:

> On Fri, Mar 26, 2010 at 07:12:48AM -0400, Jerry wrote:
> > I could have sworn that I saw a method of creating several
> > directories, actually a parent direct and several sub-directories
> > simultaneously; however, I cannot fine the documentation any longer.
> >
> > Assume I want to create a directory: FOO with three directories
> > under it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1,
> > foo-2, foo-3}
>
> Almost.
>
> $ mkdir -p FOO/{foo-1,foo-2,foo-3}

Thank you; that is exactly what I was looking for. I knew I had seen it
somewhere before.

--
Jerry
FreeBS...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________

Blessed are the meek for they shall inhibit the earth.


------------------------------

Message: 8
Date: Fri, 26 Mar 2010 12:24:31 +0100
From: Jaroslaw Miszczak <ja...@miszczak.eu>
Subject: Re: Creating multiple directories simultaneously
To: freebsd-...@freebsd.org
Message-ID:
<9a4b16bb1003260424t2a2...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi,

maybe you need

mkdirhier dirtest/dir1 dirtest/dir2 dirtest/dir3

Cheers,

Jarek Miszczak

On Fri, Mar 26, 2010 at 12:12, Jerry <freebs...@seibercom.net> wrote:
> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
>
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}
> and several other variants and they all failed. I could easily write a
> simple script to accomplish it; however, I thought I could do it
> directly from the command line.
>
> --
> Jerry
> FreeBS...@seibercom.net
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __________________________________________________________________
>
> The only real way to look younger is not to be born so soon.
>
>
>        Charles Schulz, "Things I've Had to Learn Over and
>                   Over and Over"
> _______________________________________________
> freebsd-...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"
>


------------------------------


End of freebsd-questions Digest, Vol 303, Issue 11
**************************************************

0 new messages