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

  • Write a shell script to solve the following business problem. Create a file called whoislogin.out...

    Write a shell script to solve the following business problem. Create a file called whoislogin.out that contains the output of the who command, then append to the whois.out file, the output of the date and finger commands. Your script should prompt to pick any users from the list of users currently logged onto the system. Use the variable concept to search for the specific user from those displayed on the screen coming from the who is.out file created. Show a...

  • Python Please, If possible, please continue with/ use code already given File Commands: u/a Write a...

    Python Please, If possible, please continue with/ use code already given File Commands: u/a Write a function named, file_commands, that takes the name of a file as a parameter. The function processes the contents the file as follows: For file lines that begin with the letter 'a', calculate & print the integer average of the numbers on the line. For file lines that begin with the letter 'u', print the upper case format for each word following the u. Sample...

  • In the data file employees.dat we have employee records with the following fields of information ...

    Unix/Linux In the data file employees.dat we have employee records with the following fields of information (ID, FN, LN, D, #) where ID: Employee identification number FN: Employee first name LN: Employee last name 8: Office number Write a shell script for processing employees.dat in such a way that we get the list of records (ID, FN, LN) and the total number of employees in the standard output as well as the file employees_by office.dat that contains emplayee records with...

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

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

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

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

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
ADVERTISEMENT