LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Anyone know the answers to these command-line questions? (https://www.linuxquestions.org/questions/linux-software-2/anyone-know-the-answers-to-these-command-line-questions-357601/)

PDASquare 08-27-2005 04:34 PM

Anyone know the answers to these command-line questions?
 
If anyone can help with any of the following questions, it'll be MUCH appreciated.

1) Write the complete "find" command to display the files from within the directory tree
"/usr/local/bin", which have “write” file permissions for the user and are not owned by user
“root”.

2) Write the chmod command to set the protection bits of the directory /root, so that the owner has read and execute permissions; group users only have read permission; and all other users only have execute permissions.

3) Write the full “tar” command to display the what files are in the compressed tar archive “var.bz2” which contains all the files in the directory tree /var/lib, without extracting the files.

4) Write the complete “find” command to display all file names in the “/usr” directory tree that
start with the sequence “redhat” and have a size larger than 20k bytes.

5) Using the nmap command, write a script (/usr/local/bin/log-nmap) to log which systems are
running a service on port 80. Append the output to /var/log/nmap_log. The script should
append to the log file every minute.

6) For SAMBA software, write the lines required in the configuration file "smb.conf" to create a netbios section name “doc”, which shares directory "/usr/share/doc" to only allow hosts access from subnet 192.168.0.0/16 and only allow users to have read access.

7) Write the sequence of commands to create a SWAP file of 128MBs in size and then use the SWAP file.

8) Which TCP port number does Microsoft’s Windows Internet Name Service use?

9) Write the sequence of commands to add a generic printer and share it on the local network.

10) Write the sed command to add the hash character “#” to the beginning of every line of the configuration file ntp.conf.

11) Write the complete “rpm” command to find what package provides the installed file “/usr/lib/libc.a”.

mherring02 08-27-2005 04:42 PM

This looks like the final exam in a training course. I don't have the answers without RTFM---but I wonder how you are able to ask such good questions, but not able to find all this in the manual.--Just curious.

rshaw 08-27-2005 04:52 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...hreadid=357600


All times are GMT -5. The time now is 05:55 PM.