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