「Rocky Linux 8.5」catコマンドでファイルを作成する方法
環境
# cat /etc/redhat-release
Rocky Linux release 8.5 (Green Obsidian)
書式
cat ファイル名1 ファイル名2 > 新しいファイル名
使用例
1.test1.txtを作成します
# echo study > test1.txt
2.test2.txtを作成します
# echo skill become smart > test2.txt
3.ファイルを結合してresult.txtを作成します
# cat test1.txt test2.txt > result.txt
「result.txt」の内容を確認します
# cat result.txt study skill become smart