6.6 Other Commands
To conclude this chapter, I want to briefly introduce you to a few more frequently used commands:
-
aliasalias defines shortcuts. alias ll='ls -lh' allows you to run the frequently used ls -l -h command (to list files with detailed information and present the file size as human readable) in the ll short notation. Shortcuts are best specified in the .bashrc file so that they are permanently available.
-
cat file cat file outputs a text file. The command is often combined with input or output redirection. For example, cat text1 text2 text3 > result joins three text files and saves the result in a new file.
Cat > newfile is also particularly useful. This construct allows you to create a short new text file without launching ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access