Question

For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would...

For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would I use to move the file one.txt to the parent directory and rename it to two.txt?", the answer is NOT 'mv'. That is only part of the command.

16. What command could I run to determine whether the ssh daemon is listening? With OpenSSH installed and running, the result should show that ssh/port 22 as "listening.' (5 pts)


17. Create a crontab entry that would run the file /etc/clear.sh at 5:55PM on the 2nd day of every month.


18. Create a crontab entry that would run the file /etc/clear.sh every day at 3PM.


19. Create a crontab entry that would run the file /etc/clear.sh every Wednesday at 5:01AM.


20.  Create a command that will find all files under / that end in the extension *.doc, and whose contents contain either the word "new" or "old" or "borrowed" or "blue". (5 pts).
0 0
Add a comment Improve this question Transcribed image text
Answer #1

16)
command= >  netstat -tulpn | grep ssh
root@ayushv: ~ root aayushv: # netstat -tulpn | grep ssh tcp tcp6 root ayushv: #1 1147/sshd 1147/sshod θ θ.0.0.0:22 θ :::22 L


17)

5:55PM on the 2nd day of every month

command => 55 5 2 * *


18)

every day at 3PM

command => 0 15 * * * /etc/clear.sh



19)

very Wednesday at 5:01AM.

command =>1 5 * * WED? /etc/clear.sh


20)

files under / that end in the extension *.doc, and whose contents contain either the word "new" or "old" or "borrowed" or "blue". 

command =>

find . -type f \( -name *.doc \) -exec grep "new\|old\|borrowed\|blue" /dev/null {} \;


Add a comment
Know the answer?
Add Answer to:
For each command give me the ENTIRE COMMAND SEQUENCE. If I ask you 'What command would...
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
  • For Linux Bash Script: Show the crontab file entry that would run the script from the...

    For Linux Bash Script: Show the crontab file entry that would run the script from the last question, every Monday, Wednesday, and Friday at 5:30 AM.  Assume the name of the script is fileCleanup.sh and that it is located in the ~/script directory.

  • 2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemo...

    2. At the command prompt, type ls –l /dev/log and press Enter. What is the file type? Which daemon on Ubuntu Server Linux uses this file and what is its purpose? 3. At the command prompt, type less /etc/rsyslog.conf and press Enter to view the configuration file for the System Log Daemon. Are there any entries that specify facilities, priorities, or log file locations? What does the last line of the file specify? Press q when finished to quit the...

  • give notes to what each look like and description in text form Lab#1 –Learning Some Basics...

    give notes to what each look like and description in text form Lab#1 –Learning Some Basics applied Skills We have completed our initial install of Ubuntu and begun to feel our way around our new system. The following assignment will help you familiarize yourself with your new environment. Please use your system to test answer the following questions. After you have logged in and opened a term window... SECTION I: Simple Navigation of the file system 1. Use df command...

  • Can you comment notes along with the code so I can follow along and understand what is being written?? Thanks in advance...

    Can you comment notes along with the code so I can follow along and understand what is being written?? Thanks in advance! Let's say we're in a directory and we want to rename every file ending in·c, to end in .C (i.e., capitalize the c'). Here's one way to do it: $ for i in *. c; b-basename "$1" .c'; mv "8b.c" do "8b.C". done Things get more complicated if you want more complex renaming. Say for example you just...

  • [1] How can you change the inode associated with a regular file? Specifically, what commands can...

    [1] How can you change the inode associated with a regular file? Specifically, what commands can you run that will result in a file that has exactly the same name as before but has a different inode? Please give the commands and explain what each does. [1] Does a "hole" in a UNIX file affect its logical size? What about its physical size? Explain briefly. [1] To setup key-based login using ssh, what file do you have to create or...

  • LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check...

    LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...

  • Step 3: How would you write this script in C? It needs to do the things...

    Step 3: How would you write this script in C? It needs to do the things required in step 3. 1. You have received a new batch of distinguished users; their basic information is located in newusers.tar. Inside of the tar file, there is a file called "newusers.txt" which contains a colon-separated entry for each user: the username, the uid, the GECOS information, and the user's preferred shell. Also in the tar file you will find a public key for...

  • could you please help me with this problem, also I need a little text so I...

    could you please help me with this problem, also I need a little text so I can understand how you solved the problem? import java.io.File; import java.util.Scanner; /** * This program lists the files in a directory specified by * the user. The user is asked to type in a directory name. * If the name entered by the user is not a directory, a * message is printed and the program ends. */ public class DirectoryList { public static...

  • Assignment You will be developing a speeding ticket fee calculator. This program will ask for a t...

    Assignment You will be developing a speeding ticket fee calculator. This program will ask for a ticket file, which is produced by a central police database, and your program will output to a file or to the console depending on the command line arguments. Furthermore, your program will restrict the output to the starting and ending dates given by the user. The ticket fee is calculated using four multipliers, depending on the type of road the ticket was issued: Interstate...

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