Contact us |
Using Auto completionExercise 4Using Auto completionSometimes only the first letter or first two letters of a command are known. You can use the auto completion feature of the shell to list all the utilities/commands that match the first few letters of the command that you type by using the <TAB> key. Assume you want to reboot the system for instance, but you can only remember that the command to do this starts with the letter “r” To use the auto completion feature1. Type “r” and then hit the [TAB] key twice. If prompted to display all possibilities type “y” (yes) [[root@localhost /root]# r[TAB][TAB] Display all 999 possibilities? (y or n) y racoon read resize rmdir rstartd racoonctl readelf resizecons rmf rsync ………………………………. Use the space bar to scroll through the list of commands that start with the letter “r”. 2. To list only commands that start with the letter “r” followed by “e” [root@localhost /root]# re[TAB][TAB] List some of the output here: 3. List the output when you use the auto completion feature to display all the commands that begin with the letters “cd….” 4. What happens when you press the <TAB> key twice without typing any letter? 5. Log out of the system.
|
Login... |