Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


Closed Thread
  Search this Thread
Old 08-27-2005, 04:34 PM   #1
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

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

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 PM.

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