From: Olga <laedel@pochtamt.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Старые файлы
Date: Thu, 3 Oct 2002 14:05:26 +0800
Message-ID: <20021003140526.361b1744.laedel@pochtamt.ru> (raw)
In-Reply-To: <178837610.20021002154234@hotbox.ru>
Nick <tuxmail@hotbox.ru> пишет:
> 1. Как в linux чистить старые файлы, всякие там old, bak и т.п
> (и вообще какие в linux расширения у старых файлов)??
Вообще говоря, понятие "расширение" не имеет в линуксе особого 
смысла, если говорить о системе как таковой (хотя некоторые программы
и могут обращать внимание на символы после последней точки в имени 
файла). Потому, как назовёте резервную копию файла, так и будет.
Или как та или иная программа называет старые версии файлов, так и
будет. Тут могут быть и bak, и old, и что-нибудь ещё -- помню, 
какой-то редактор добавлял символ ~ в конец имени файла, даже точку
перед этим символом не ставя (вот вам и "расширение" :-)
Ну а чистить можно так:
find ОчищаемыйКаталог -name '*.bak' -exec rm {} \;
или, чтобы каждый раз спрашивалось подтверждение, 
удалять файл или нет:
find ОчищаемыйКаталог -name '*.bak' -ok rm {} \;
Можно чистить old и bak сразу:
find ОчищаемыйКаталог -name '*.[ob][la][dk]' -ok rm {} \;
> 2. Что обозначает тире после названия файла, например:
> groups
> groups-  ???
Кажется, в данном случае это и есть резервная копия файла
groups
С уважением,
OL
next prev parent reply	other threads:[~2002-10-03  6:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02 11:42 Nick
2002-10-03  6:05 ` Olga [this message]
2002-10-03 11:08   ` Anton Kovalenko
2002-10-03 13:18   ` Дмитрий Зубов
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=20021003140526.361b1744.laedel@pochtamt.ru \
    --to=laedel@pochtamt.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git