in centos 7 help me to solve this quesation: 1. Type the command: ls –ld, then repeat…
- User
in centos 7 help me to solve this quesation: 1. Type the command: ls –ld, then repeat the previous command using only two characters (there are more than one solution) 2. Display the last 6 commands you typed 3. Issue the command you typed in question 1 again, using the line numbers you received from the command in question 3. 4. How many commands can be remembered in memory for your current shell session? 5. When exiting the shell, where are these commands stored? 6. When exiting your current shell session, how many commands can be written to the history file? 7. How can you verify that your current bash shell remembers the next 5000 commands you type. 8. Open more than one console with the same user account. When is command history written to the history file? 9. Using vi(m) editor to answer the following questions: a. What 3 key sequence in command mode will duplicate the current line. b. What 3 key sequence in command mode will switch two lines' place (line five becomes line six and line six becomes line five). c. What 2 key sequence in command mode will switch a character's place with the next one. 10. Create a directory and enter it. Then create the following files inside the directory using one command: file1 file10 file11 file2 File2 File3 file33 fileAB filea fileA fileAAA file( file 2 (the last one “file 2” has 6 characters including a space) 11. List all files starting with file or File 12. List all files starting with file and ending with a letter 13. List all files starting with File and having a digit as fifth character and nothing else. 14. List all files starting with a letter and ending in a number. 15. List all files that have exactly five characters. 16. List all files that start with f or F and end with 3 or A. 17. List all files that start with f have i or R as second character and end in a number. 18. List all files that do not start with the letter F. 19. Can echo command replace ls command? How can you list the files in the current directory with echo? 20. Is there another command besides cd to change directories?
- Assistant