Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The command should be one line 2. A bash command to search through the past 50 commands that a user has run via bash, and
The command should be one line
2. A bash command to search through the past 50 commands that a user has run via bash, and search for only ones containing "cd" or "ls". All other commands should be ignored. For example, say that the user has run a variety of different kinds of commands in the past 50 commands, and only 3 contain those keywords. Those would be: $ls-lta$cd/usr/lib$grep"cdna" In that case, if we ran the command, we should get: \$your_command cd /usr/lib grep "cdna" ls -lta The commands should be sorted via the sort commandStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started