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)