linux 常用命令记录

PS1 

https://blog.csdn.net/u013024120/article/details/53542234

 

 

cat 用法

1 覆盖原有文本

cat > test <<EOF

the 1 line
the 2 line
the 3 line

EOF

 

2 追加的原有文本尾部

cat >> test <<EOF

the 4 line
the 5 lien

EOF

 

3 输出到屏幕多行菜单

cat <<  EOF

内容1
内容2
内容3

EOF

 

posted @ 2021-11-05 23:06  Linux_小白  阅读(26)  评论(0)    收藏  举报