This alias uses the ps command to list the running processes and then pipes them through the grep command. This is required if the command sequence has spaces in it. Note the use of quotation marks around the command sequence. Here’s an alias called pf (for process find) that is just a little more complex. Now it will know.Īliases can be much more intricate than that simple example. But, if you frequently move between Windows and Linux command line, you can find yourself typing the Windows cls command on a Linux machine that doesn’t know what you mean. When you type cls, it will clear the screen just as though you had typed clear. You can then type your short name, and the shell will execute the command or sequence of commands for you. The alias command lets you give your own name to a command or sequence of commands. The man command is in our list, of course-it’s short for “manual.” 1. A command’s position in the list is not representative of its usefulness or simplicity. For the final word on a command’s usage, refer to its man pages. The below list is presented in alphabetical order. Learn these commands, and you’ll be much more at home at the Linux command prompt. Linux includes a large number of commands, but we’ve chosen 37 of the most important ones to present here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |