Some Useful Commands

The tables below list some of the most useful Linux commands. The tables show the command name, what the command does, and where to find more information. In addition, sort and grep, two of the more flexible commands, are documented in this chapter to show the use of complex commands.

Linux commands can be used on the command line or in shell scripts, programs that perform tasks in the Linux shell. Creating shell scripts is discussed in Chapter 19.

Table 7-1. Some Useful Linux File Management Commands
CommandWhat it doesDetails in
catDisplay contents of a file.Chapter 9
cdChange current directory.Chapter 9
chgrpChange the group owner for a file.Chapter 9
chmodChange the permissions of a file.Chapter 9
chownChange the owner of a ...

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.