Question

what do the following shell commands do 1) rm Project* 2) ls File[0-9][0-9] 3) rm [A-Z]???

what do the following shell commands do

1) rm Project*

2) ls File[0-9][0-9]

3) rm [A-Z]???

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)rm is a command used to delete the files

This removes the file names starting with Project(like Project1,Projectkjh,Projectwer)

2)ls is used to display all the files.This displays the files name starting with File and after that it should have 2 numbers like (File12,File43,File27,File87) .

3)? tells 1 character to be have in that place like(a2U,dRy) like it has filename like first character is any A-Z after that it has any two characters

Add a comment
Know the answer?
Add Answer to:
what do the following shell commands do 1) rm Project* 2) ls File[0-9][0-9] 3) rm [A-Z]???
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Revision Question 3 on Linux. Please explain the shell script commands in the context of post...

    Revision Question 3 on Linux. Please explain the shell script commands in the context of post execution. You have just logged in and have a directory called "novel" in your home directory containing the following files: chapter1.docx chapter2.docx chapter3.docx draft.pdf save where "save" is itself a directory and contains the files Attributes.txt draft.pdf.1 draft.pdf.2 draft.pdf.3 indexA.txt indexB.txt list1.txt list2.txt a) Describe the results you would expect when executing the following shell commands: i) ls novel/save/*A* ii) ls novel/*r[23]* iii) rmdir...

  • What do the following Unix/Linux commands do? Is: rm: man: ifconfig:

    What do the following Unix/Linux commands do? Is: rm: man: ifconfig:

  • Please provide screenshots of the commands. 1. ls – list directory contents $ ls $ ls...

    Please provide screenshots of the commands. 1. ls – list directory contents $ ls $ ls -l ______________________________________________________________________ $ ls -alg ______________________________________________________________________ 2. $ which echo ______________________________________________________________________ 3. $ whereis echo ______________________________________________________________________ 4. $ file <output from procedure 5> ______________________________________________________________________ alias – short cut command to a longer command $l $ alias l=”ls -alg" $l ______________________________________________________________________ $ unalias l $l ____________________________________________________________________

  • Question 2 0/1 point (graded) What happens when you remove a directory using the command rm...

    Question 2 0/1 point (graded) What happens when you remove a directory using the command rm -r? You cannot remove a directory using the rm command. You permanently remove the entire directory, including all files and subdirectories. You move the entire directory to a trash folder, but it can be restored later. You get a warning message asking if you want to proceed, then you delete the directory. incorrect Answer Incorrect: Try again. Unix does not warn you before permanently...

  • Describe what each of the following commands do rm /tmp/f mkfifo /tmp/f

    Describe what each of the following commands do rm /tmp/f mkfifo /tmp/f

  • Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell...

    Unix questions, i need help on Hint: Commands to study to answer this question: predefined shell variables, and .profile script file, echo SHELL, HOME, PATH, MAIL and TERM are predefined shell variables. You can use the value of a shell variable in a shell command putting $ in front of it. For example, to display the value of the HOME directory of the user, specify $HOME in the echo command like echo $HOME. Do not give just the value of...

  • Project 1: Implementing a Shell 1 Overview In this individual project you will have to design...

    Project 1: Implementing a Shell 1 Overview In this individual project you will have to design and implement a simple shell command interpreter called mysh. The basic function of a shell is to accept lines of text as input and execute programs in response. The shell must be able to execute built-in commands in a process different from the one executing mysh. 2 Requirements When first started, your shell should initialize any necessary data structures and then enter a loop...

  • Overview Writing in the C language, implement a very basic shell, called smash. In this project,...

    Overview Writing in the C language, implement a very basic shell, called smash. In this project, we will work on processing strings and using the appropriate system calls. Build System setup Before we can start writing code we need to get our build system all setup. This will involve writing a very simple makefile. You should leverage your Makefile project for this part of the assignment! Write a Makefile that provides the three targets listed below all - The default...

  • Question: Hands-On Project 3-3 Use a Batch File A file with a bat file extension is...

    Question: Hands-On Project 3-3 Use a Batch File A file with a bat file extension is called a batch file. Yo... Use a Batch File A file with a .bat file extension is called a batch file. You can use a batch file to execute a group of commands, sometimes called a script, from a command prompt. Do the following to learn to use a batch file: 1. Using a command prompt window, copy the files in your Documents folder...

  • please explain and do in matlab Problem 3. Consider the function f(x) e cos(2r). (1) Sketch its graph over the interval [0, m) by the following commands: (2) Using h = 0.01 π/6 in [0, π]. The comm...

    please explain and do in matlab Problem 3. Consider the function f(x) e cos(2r). (1) Sketch its graph over the interval [0, m) by the following commands: (2) Using h = 0.01 π/6 in [0, π]. The commands are: to compute the difference quotient for z And the difference quotient is: ( 6 (3) Using h-0.01 to approximate the second derivative by computing the difdifquo for in [0, π). The commands are: And the difdifquo is: Problem 3. Consider the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT