摘要: Head The head command is used to display the beginning of a file or the first few lines of input. It's a useful command for quickly viewing the start 阅读全文
posted @ 2024-05-16 03:44 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: The read command is used to take input from the user. Reading a single input value: echo "Enter your name:" read NAME echo "Hello, $NAME!" Output afte 阅读全文
posted @ 2024-05-16 03:38 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑
摘要: The echo command is used to display a line of text or string that is passed as an argument. It's one of the most basic and frequently used commands in 阅读全文
posted @ 2024-05-16 03:23 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: The wc command computes the numbers of lines, words, and bytes in a file: wc notes.txt # > 3 7 35 /home/substack/notes.txt Count words wc -w notes.txt 阅读全文
posted @ 2024-05-16 03:07 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑