ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] часто используемые в консоли команды (was: Консультация)
Date: Thu, 1 Dec 2005 11:36:47 +0200
Message-ID: <20051201093647.GB22267@osdn.org.ua> (raw)
In-Reply-To: <F86068E675F09F4BBC85ACA22D3174E108EAF9@zeus.knpp.local>

On Thu, Dec 01, 2005 at 10:58:51AM +0300, Туркин Михаил Александрович wrote:
> > > Буквально первые недели работаю с ALM 2.4 и естественно
> > > масса вопросов. Заранее благодарен!
> > Сюда и обращайтесь, собственно коммьюнити для этого и есть.
> Суть вопроса в следующем, на работающих серверах с ALM 2.4, с
> удалённого терминала надо часто писать архивы, (иногда по
> нескольку раз в день). Носители самые разные и как-то напрягает
> постоянное общение с командной строкой по созданию образа и
> записи. Вот пример:
> mkisofs -l -J -R -o cdrom.iso <<имя файла>>

Занесите в ~/.bashrc такое:

alias img='mkisofs -l -J -R -o ~/tmp/cdrom.iso $@'

и выполните source ~/.bashrc или перелогиньтесь.

После этого img <<имена файлов>> создаст в ~/tmp образ.

> для носителей CD-R
> cdrecord -v -dev=1,0,0 cdrom.iso

alias cdr='cdrecord -v -dev=1,0,0 ~/tmp/cdrom.iso'

> CD-RW
> cdrecord -v -dev=1,0,0 - blank=fast cdrom.iso

alias cdrw='cdrecord -v -dev=1,0,0 blank=fast ~/tmp/cdrom.iso'
(убрал лишний минус)

> DVD-R, RW
> growisofs - z /dev/cdrom=cdrom.iso

alias dvd='growisofs -Z /dev/cdrom=~/tmp/cdrom.iso'

(заглянул в manpage и заменил "- z" на "-Z"; в будущем лучше
не набирать по памяти, а копипастить -- ну или хотя бы уточнять,
что именно перенабрано)

> Кто б помог с написанием скриптов, программеры на фирме
> отсутствуют.

Ну так заведитесь :-)  Строчки уже есть, русский перевод 
Bash conspect прекрасно гуглится.

PS: также рекомендую добавить к параметрам cdrecord
-tao gracetime=2 и, возможно, -eject.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


  reply	other threads:[~2005-12-01  9:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-01  7:58 [Comm] JT Консультация Туркин Михаил Александрович
2005-12-01  9:36 ` Michael Shigorin [this message]
2005-12-04 12:33   ` [Comm] часто используемые в консоли команды (was: Консультация) Andrey Rahmatullin
2005-12-01  9:49 ` [Comm] JT Консультация Eugene Prokopiev
2005-12-01 10:04   ` Alexey I. Froloff
2005-12-01 19:25 ` Yura Kalinichenko

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=20051201093647.GB22267@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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