The UNIX and Linux Forums  


Go Back   UNIXおよびLinuxフォーラム > トップフォーラム > UNIXのダミー質問と回答のため
Googleのunix.com



UNIXのダミー質問と回答のため もしUNIXやLinuxについての質問があれば、ここに投稿してください。すべてのUNIXおよびLinux初心者歓迎!

その他のUNIXおよびLinuxフォーラムトピックは参考にすること
スレッド スレッドスターター フォーラム 返信 最後の投稿
予定ではこのスクリプトをcrontabを効果9日か? thepurple Sun Solaris 2 2007年10月5日 05:31午前
viのプロパティ shriashishpatil UNIXのダミー質問と回答のため 2 2007年4月20日 02:27午後
設定の効果を一時的に無効にメールでksh ugeek シェルプログラミングとスクリプティング 1 2007年3月28日 05:21午前
先制カーネルの影響 sriram.ec UNIXの詳細&エキスパートのためのユーザー 2 2006年3月15日 01:43午前
再帰的な効果! sskb UNIXのダミー質問と回答のため 2 2003年1月30日 12:05午後

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek を搭載 Powered by Google
 
LinkBack スレッドツール このスレッドを検索 スレッドを評価 表示モード
  #1固定リンク)  
Old 2006年6月21日
Chiefos Chiefos is offline
登録ユーザー
  
 

参加日: 2006年6月
投稿: 28
スクリプトのプロパティの効果はどのようですか?

やあ、

私は、 rmを実行する場合には完全にrm - Fiの異なる注目している。 Whatsどうすればどのように行動するとの関連では、スクリプトにオプションを置くのパターン。

すなわち、

rm - Fiは削除がinterativeとして扱う
rm -場合として扱わ強制

Thansk 、クリス。
  #2固定リンク)  
Old 2006年6月21日
blowtorch's Avatar
ジェット機 blowtorch is offline Forum Advisor  
サポーター
  
 

参加日: 2004年12月
場所:シンガポール
投稿数: 2,350
正直言って、私は、 - fおよび-私のオプションを一緒に仕事を見つけるに驚いた。しかし、 HPとSunのmanページ( )をチェックし、私は以下のが見つかりました:
HP - UXへ:
HTMLコード:
rm recognizes the following options:

           -f   Force each file or directory to be removed without prompting
                for confirmation, regardless of the permissions of the
                entry.  This option also suppresses diagnostic messages
                regarding nonexistent operands.

                This option does not suppress any diagnostic messages other
                than those regarding nonexistent operands.  To suppress all
                error message and interactive prompts, the -f option should
                be used while redirecting standard error output to
                /dev/null.

                This option ignores any previous occurrence of the -i
                option.

 Hewlett-Packard Company            - 1 -   HP-UX Release 11i: November 2000

 rm(1)                                                                 rm(1)

           -i   Write a prompt to standard error requesting confirmation
                before removing each entry.
Solarisの場合:
HTMLコード:
    -f    Removes all files (whether write-protected or not)  in
           a  directory  without  prompting the user. In a write-
           protected directory, however, files are never  removed
           (whatever  their permissions are), but no messages are
           displayed. If the removal of a write-protected  direc-
           tory  is  attempted,  this option will not suppress an
           error message.

     -i    Interactive. With this option, rm prompts for  confir-
           mation  before removing any files. It overrides the -f
           option and remains in  effect  even  if  the  standard
           input is not a terminal.
の場合は" rm - Fiの"のHP上で実行する場合、 "強制のmanページで指定されると、それが、 " rm -インタラクティブです。しかし、 Solarisは、上で" - i "をして、 " - f "とは関係なく発生するのは無視されますが指定されている。
Closed Thread

ブックマーク

スレッドツール このスレッドを検索
このスレッドを検索

高度な検索
表示モード このスレッド
このスレッド

投稿ルール
あなた ことができない。 新しいスレッドを投稿
あなた ことができない。 返信の投稿
あなた ことができない。 添付ファイルの投稿
あなた ことができない。 自分の投稿を編集

BBコード なる 〜の上に
スマイリー なる 〜の上に
[イメージ] コードは 〜の上に
HTMLコードは、 オフ
トラックバック なる 〜の上に
ピングバック なる 〜の上に
Refbacks なる 〜の上に




すべてGMT -4です。現在の時刻は 08:40午前


提供: vBulletin、著作権© 2000 - 2006、Jelsoft企業株式会社。言語翻訳による電源
vBCredits v1.4著作権© 2007 - 2008 、 PixelFXスタジオ
は、 UNIXおよびLinuxフォーラムのコンテンツ著作権© 1993 〜 2009 。すべての権利を管理しReserved.Ad RedTyger

コンテンツ関連のURLで vBSEO 3.2.0