コンテンツにスキップ

Default Commands

File Control

ファイル作成

#   for multi line?
$ cat << EOF > [filename]
> hogehoge
> if input EOF then finish to write
> EOF

#   overwrite
$ echo 'writing text' > [filename]
#   add
$ echo 'add text' >> [filename]

#   create and edit
$ touch [filename]
$ vi [filename]

最終更新日: August 14, 2023
作成日: August 14, 2023