Linuxã§ãã¡ã¤ã«ã空ã«ãã5ã¤ã®æ¹æ³
ãã°ãã¡ã¤ã«ã空ã«ãããã¨ããªã©ããã¤ãå¿ããã®ã§ã»ã»ã»ã
: > file
% : > file
ãããä¸çªã·ã³ãã«ã§ããã : ã¨ããåºåãã®ã³ãã³ãããããããã file ã«ãªãã¤ã¬ã¯ããã¦ãããã¨ãã¡ã¤ã«ã空ã«ãªãã¾ããman bash ã«ã¯ä»¥ä¸ã®ããã«è¨è¿°ããã¦ãã¾ããããããzshã§ã¯ä¸çªã·ã³ãã«ã§ãã
ã»ã»ã» A : separates the event specification from the word designator. ã»ã»ã»
ã»
ã»
ã»
SHELL BUILTIN COMMANDS
Unless otherwise noted, each builtin command documented in this section as accepting options preceded by - accepts -- to signify the end of the options. For example, the :, true, false, and test builtins do not accept options. Also, please note that while executing in non-inter-active mode and while in posix mode, any special builtin (like ., :, break, continue, eval, exec, exit, export, readonly, return, set, shift, source, times, trap, unset) exiting with aãnon-zero status causes the shell to stop execution.
: [arguments]
No effect; the command does nothing beyond expanding arguments and performing any speci-fied redirections. A zero exit code is returned.
ã»
ã»
ã»
cp /dev/null file
% cp /dev/null file
/dev/null ã¨ããæ¬ä¼¼ããã¤ã¹ãå©ç¨ã㦠file ã空ã«ããæ¹æ³ã§ãã
åè
-/dev/null - Wikipedia
echo -n > file
% echo -n > file
-n ãªãã·ã§ã³ããªãã¨æ¹è¡ãå
¥ã£ã¦ãã¾ãã¾ãã
åè
-空のファイルを作成するには
-http://www.linux.or.jp/JM/html/GNU_sh-utils/man1/echo.1.html
cat > file
% cat > file
ãã®å¾ ctrl-D ã ctrl-C ãªã©ã§æããã
> file
% > file
åãªããªãã¤ã¬ã¯ãã§ãã§ãã¾ãããzshã®å ´åãcat > ã¨åãããã«ããã®å¾ ctrl-D ã ctrl-C ãªã©ã§æããå¿
è¦ãããã¾ããbashã¯Ctrl-Dã¯å¿
è¦ãªãã®ã§ãbashã§ã¯ä¸çªã·ã³ãã«ããããããã
ã¹ãã·ã£ã«ãµã³ã¯ã¹
Twitterã§è²ã æãã¦é ãã¾ãããæè¬ã§ãm(_ _)m
ã¾ã¨ã
ã¿ã¤ãã«ã«5ã¤ã®æ¹æ³ã¨æ¸ãã¾ãããããã£ã¨ä»ã«ããã¨æãã¾ãã®ã§ãæãã¦ä¸ããï¼ï¼