Question

write the commands that will get the information specified by the following questions from the file...

write the commands that will get the information specified by the following questions from the file etc.passwd. Note that this file is organized as follows:

account:password:UserID:GroupID:user name:home directory:shell

Note that you may need to use a variety of commands along with piping and redirection to accomplish these tasks.

List the account name of users who have bash as their default shell in descending order.

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

letc/password - it stores essential information & it is used for login Let us understand It has one entry per line for the pa.

ohne UID I-99 reserved for accounds which are preagthea 4) Group Id - In stored infetel group file & it is primary group id.

User list To for all user = $ cat letel password search user Krishna $greb Krishna letelpassword ΟΥ & grep -w krishna letc/p

The password after being encrypted is stored in the /etc/shadow file,

PLEASE REVERT IN COMMENTS FOR ANY OTHER CLARIFICATION

HAPPY TO HELP!!!!!!!!!!!!!!!!!!!!!!!

Add a comment
Know the answer?
Add Answer to:
write the commands that will get the information specified by the following questions from the file...
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
  • 1. Write the command to set the following permissions on a script file with the following...

    1. Write the command to set the following permissions on a script file with the following name; myscript.sh Owner: full access; read, write and execute Group: read and execute Other: no access 2. Create a new file with the name "myfirstscript.sh". Write a new script that performs the following tasks in sequence; Display the usernames of currently logged in users; sorted from a-z HINT: You will need to filter the output of the whocommand Display a list of usernames who...

  • 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...

  • INFO 1211

    Lab 0: Essential UNIX OperationsObjectivesAt the end of this of lab, you should be able to:securely      log in to a remote computer running a UNIX-like operating systemread the      manual page for any commanduse the      UNIX file systemedit a      text fileNotes:·         In order to get familiar with UNIX, do all your work on UNIX.·         A command line interface may be harder to learn, but can be more powerful for scripting and automating tasks.·        ...

  • Write a complete Python program with prompts for the user for the main text file (checks...

    Write a complete Python program with prompts for the user for the main text file (checks that it exists, and if not, output an error message and stop), for any possible flags (including none), and for any other input that this program may need from the user: split has an option of naming the smaller files head_tail list the first 10 lines (default) and the last 10 lines (default) in order of the given text file flag: -# output #...

  • Write a program that will first receive as input the name of an input file and an output file. It will then read in a list of names, id #s, and balances from the input file specified (call it InFile.t...

    Write a program that will first receive as input the name of an input file and an output file. It will then read in a list of names, id #s, and balances from the input file specified (call it InFile.txt) which you will create from the data provided below. The program will then prompt the user for a name to search for, when it finds the name it will output to a file (call it OFile.txt) the person’s id#, name,...

  • I need this done ASAP. Please write a bash shell script that does the following: Prints...

    I need this done ASAP. Please write a bash shell script that does the following: Prints out how many users are logged on. This can be accomplished using who and wc. Prints out a list of currently logged on users. This can be accomplished using who, grep, regular expressions, and echo. Prints out how many processes you have running from past days, and a list of those jobs. Use `whoami` to get your username. Run ps -ef and see how...

  • Given the following text file, Write down the commands for the tasks Brasstown Bald,(summit),4784,feet,Union County Rabun...

    Given the following text file, Write down the commands for the tasks Brasstown Bald,(summit),4784,feet,Union County Rabun Bald,(summit),4696,feet,Rabun County Dick's Knob,(summit),4620,feet,Rabun County Hightower Bald,(summit),4568,feet,Towns County Wolfpen Ridge,(ridge high point),4561,feet,Towns and Union Counties Blood Mountain,(summit),4458,feet,Union County Grassy Ridge,(ridge high point),4420,feet,Rabun County 1) Use grep to find out the mountains with ridge high point. (The entire line, not just the name of the mountain) 2) Use egrep to output the mountains which is a bald or knob. (The entire line, not just the...

  • 8. (4 pts + 2Xc) Write a bash shell script called 08-numMajors that will do the following i. Read data from a class enrollment file that will be specified on the command line ii. If the file does no...

    8. (4 pts + 2Xc) Write a bash shell script called 08-numMajors that will do the following i. Read data from a class enrollment file that will be specified on the command line ii. If the file does not exist, is a directory, or there are more or less than one parameters provided, display an appropriate error/usage message and exit gracefully Display the number of a specified major who are taking a given class iii. The following is a sample...

  • This assignment shpuld be code in java. Thanks Overview In this assignment you will write a...

    This assignment shpuld be code in java. Thanks Overview In this assignment you will write a program that will model a pet store. The program will have a Pet class to model individual pets and the Assignment5 class will contain the main and act as the pet store. Users will be able to view the pets, make them age a year at a time, add a new pet, and adopt any of the pets. Note: From this point on, your...

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