LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 08-27-2005, 04:34 PM   #1
PDASquare
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.2
Posts: 16

Rep: Reputation: 0
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”.
 
Old 08-27-2005, 04:42 PM   #2
mherring02
Member
 
Registered: May 2005
Location: Pasadena, CA
Distribution: Ubuntu, Fedora
Posts: 50

Rep: Reputation: 15
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.
 
Old 08-27-2005, 04:52 PM   #3
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
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
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know the answers to these command-line questions? PDASquare Linux - General 11 08-28-2005 08:37 AM
I have some questions about the command line again. darren200184 Linux - Newbie 3 02-15-2005 08:13 AM
Some questions in the command line. darren200184 Linux - Newbie 2 02-13-2005 08:40 PM
newbie questions about the command line sether *BSD 12 09-04-2004 01:40 PM
Command Line Questions Chryzmo Linux - Newbie 5 02-04-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration