パスワード付きのzipファイルの作り方

Linux No Comments »

Linuxでパスワード付きのzipファイルの作り方。original_file.txtをnew_file.zipに圧縮する場合。

% zip -e new_file.zip original_file.txt

cronについてメモ

Linux No Comments »

cronについて。

まず基本的なコマンド。

現在のユーザで実行されるcronを見る。

$ crontab -l

編集する

$ crontab -e

書き方、忘れやすいもの。

cronでどこかに移動した後、コマンド実行したい場合はこう書く。

* * * * * cd foo/bar; command

行頭の#はコメント扱い

# ↓実行されない
# * * * * * cd foo/bar; command

日時の指定方法などは割愛。

Powered by WordPress | WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in