[prev in list] [next in list] [prev in thread] [next in thread]
List: opensuse-factory
Subject: Re: [opensuse-factory] Re: Tumbleweed update to 20200201 removed /etc/services - what does 'old' do?
From: "Carlos E. R." <robin.listas () telefonica ! net>
Date: 2020-02-23 12:41:55
Message-ID: 66ca6c5b-1b0c-e623-5505-c772a32015b3 () telefonica ! net
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
On 23/02/2020 13.19, Hans-Peter Jansen wrote:
> Am Sonntag, 23. Februar 2020, 12:49:52 CET schrieb Carlos E. R.:
>> On 22/02/2020 15.13, Luca Beltrame wrote:
>>> Il giorno Sat, 22 Feb 2020 00:54:01 +0100 Knurpht-openSUSE <> ha scritto:
>>>> cp /etc/nsswitch.conf /etc/nsswitch,.conf.`date +%F`
>>>
>>> Or just "old /etc/nsswitch.conf" ("old" is part of aaa_base, which
>>> means installed in almost all configurations).
>>
>> cer@Telcontar:~> man old
>> No manual entry for old
>> cer@Telcontar:~>
>> cer@Telcontar:~> old
>> usage: /usr/bin/old file|dir [file|dir ...]
>> cer@Telcontar:~>
>> cer@Telcontar:~> old --help
>> --help does not exist.
>> cer@Telcontar:~>
>>
>>
>> No idea what it does...
>
>
> $ whereis old
> old: /usr/bin/old
> $ file /usr/bin/old
> /usr/bin/old: Bourne-Again shell script, ASCII text executable
> $ vi /usr/bin/old
> Ahh..
> $ old
> usage: /usr/bin/old file|dir [file|dir ...]
I don't see help or explanations...
Like
$ old
This program does .... whatever
usage: /usr/bin/old file|dir [file|dir ...]
Of course, I can read the code and figure it out. Or try it:
cer@Telcontar:~> l p
-rw-r--r-- 1 cer users 842 Jan 30 13:31 p
cer@Telcontar:~> old p
moving p to p-20200223
cer@Telcontar:~> l p-*
-rw-r--r-- 1 cer users 842 Jan 30 13:31 p-20200223
-rw-r--r-- 1 cer users 2747 Oct 8 15:37 p-ui
cer@Telcontar:~>
cer@Telcontar:~> old p.log
moving p.log to p.log-20200223
cer@Telcontar:~>
I prefer to timestamp with the actual date of the file.
--
Cheers / Saludos,
Carlos E. R.
(from 15.1 x86_64 at Telcontar)
["signature.asc" (application/pgp-signature)]
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic