Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
tennisman624
Linux Test Prep Help?
I got a practice test from my teacher, but she never gave out the answer sheet so I have no way of checking. I think I did all right (but could be completely wrong). Can someone simply verify my answers so I know where I stand?
QUESTION 1: (I answered D)
Examine the following script, n-on:
who | sort | awk '{print $1}' | uniq | wc -l
What will be the output of n-on?
A. A list of all the users currently logged on to the system and the date and time they logged on.
B. The date and time of your last login to the system.
C. The number of processes running for each user that is currently logged on to the system.
D. The number of users logged on to the system at the time the script is run.
QUESTION 2: (I answered B)
Explain the following:
1rwxrwxrwx 1 root 4 Aug 16 14:20 awk -> gawk
A. awk is a link to gawk. This means that when awk is entered at the command line, the program gawk will actually be the executable that runs.
B. gawk is a link to awk. This means that when gawk is entered at the command line, the program awk will actually be the executable that runs.
C. gawk will test and see the pattern randomly to match the awk program, if match then the action is executed.
D. gawk performes a comparison on 2 numerical strings under the awk program
QUESTION 3: (I answered D)
Which of the following creates a new directory?
A. touch Dir-A
B. dir Dir-A Dir-B
C. mkdir ~/jobs/
D. cat DIR-C > DIR-D
QUESTION 4: (I answered B)
Sandy is a member of the managers group. Consider carefully the output of ls -l. What operations can she perform on the file shown below?
-rwxr-xr-- 1 Sandy managers 4775 Aug 29 2001 tclConfig.sh
A. Read only
B. Read and execute only
C. Read, write and execute
D. Execute only
QUESTION 5: (I answered D)
The system /etc/profile has created an environment variable called LS_COLORS. You want to clear that variable because it causes display problems on your dumb terminal. What command will remove the environment variable?
A. LS_COLORS=
B. clear LS_COLORS
C. LS_COLORS=null; export LS_COLORS
D. unset LS_COLORS
QUESTION 6 (I answered B)
Decrement.sed is a sed script for reducing all numbers in a text file by one. Which command demonstrates the correct way to run this script on the text file receipt.txt?
A. ./Decrement.sed < receipt.txt
B. sed -f Decrement.sed receipt.txt
C. cat receipt.txt | Decrement.sed
D. sed -e receipt.txt < Decrement.sed
2 AnswersProgramming & Design9 years agoA few questions about Linux commands?
What is the difference between these commands? Don't they all just take you to the home directory?
cd ~
cd $HOME
cd ../../root
cd
Also how do you append output from a script file to a .log file?
3 AnswersProgramming & Design9 years agoHow to print out ASCII character given number in C++?
I am calculating an integer based on an barcode image. The int will have a value between 1 (2^0) and 256(2^8). I am trying to create a string of characters, each represented by the int which I get from evaluating an individual column of a barcode.
I don't know how to convert an int to a string and then append that string to the end of another string (an empty one initially). I have tried the following (where col_sum is my integer):
string temp_str, full_temp_str;
stringstream ss;
char temp_char;
temp_char = (char)col_sum;
ss << temp_char;
ss >> temp_str;
full_temp_str.append(temp_str);
1 AnswerProgramming & Design9 years agoHow do I delete songs from my iPhone?
I deleted a very large number of songs from my iTunes LIBRARY (1000+ songs) and I never want to see them again. For some reason they are still in my [user]>music>iTunes>iTunes music folder.
When iTunes prompted me to "keep file" or "move to trash", I selected the latter and then emptied my trash. The songs no longer show up in my library, but I can't the library on my iPhone to mirror the one on my computer. The iPhone library keeps all of the stupid songs I don't want. I have read that you can do the manual control and uncheck the songs that you don't want, but there is no way in hell that I am going to do that for over 1000 songs.
3 AnswersOther - Computers10 years agoDoes anyone know how to make a mac open Adobe files in Preview?
I use gmail and I keep getting emails in Adobe format. I don't have Adobe on my computer and I always have to open finder and force the computer to open the document in preview. Is there any way to set gmail so that it downloads the files in Preview? If not, is there any way to make a mac always open Adobe documents with preview?
2 AnswersOther - Computers1 decade agoDoes anyone know of a place where I can find some good soccer drills for a U16 Girls team.?
Either a free website or a good book would be great. Thanks!
3 AnswersWomen's Football (Soccer)1 decade agoDoes anybody know where to find this commercial?
The commercial is for Jack n' the Box
they have two things on opposite sides of the room
one side a sandwich the other girls having a pillow fight
guys pick the sandwich
final line is "we could rule the world!"
1 AnswerOther - Television1 decade agoHow do i get rid of blisters?
I am an active tennis player and can't take time of my training schedule. I have a blister on the heel pad of my right hand (the hand i play with) so I cant put tape over it. It has been there for several weeks. I heard that there might be some kind of cream I can rub on it. If you know anything about this type of cream or any other method of getting rid of blisters please tell me. Thank you.
6 AnswersTennis1 decade agoI need help deciding what book to read for school.?
My options are:
The Catcher in the Rye
Kite Runner
The Jungle
Slaughterhouse-Five
4 AnswersHomework Help1 decade agoShould I eat protein before or after I work out?
Please only answer if you know for sure
3 AnswersDiet & Fitness1 decade agoMichael Jessup?
Does anyone know how I can contact Michael Jessup for tennis lessons or maybe tell me where he teaches so I can try to find him?
2 AnswersTennis1 decade agoDoes anybody know the guy on youtube....?
He can play all of the different guitar parts for a song at one time. He is sitting on stage and starts out by playing one part, then shows the second part, then third... and then he plays them all together. I want to know his name cause i cant find the video anymore
1 AnswerYouTube1 decade agoI need help with lead tape.?
I want to make a 7 point headlight racket either equal or 1 or 2 points head heavy. The racket is a Head Microgel prestige. Any one know how much lead tape I should use and on what part of the racket I should apply it?
2 AnswersTennis1 decade agoIs tylenol better than aspirin?
I hear that tylenol is really bad for your liver and that aspirin is a better alternative, anyone else heard something like this?
7 AnswersMedicine1 decade agoWhat do you think about about engagement rings?
Why do men have to put all of their money into buying a ring. I understand that it is to show your love, but why isn't there a tradition where women should put the same amount of money the ring cost into doing something for the man. It seems like in society women are always pampered and receive gifts (really expensive gifts) while men work their asses of to be able to give them such gifts. On the flip side, women, as far as i've seen, hardly ever gift men.
Another Question??
Why do women generally get to be the ones to be stay at home parents. Personaly as a guy, I would love to be a stay at home dad and I believe that not being able to be a stay at home parent causes a seperation between the working parent and the children.
13 AnswersMarriage & Divorce1 decade agoDoes anybody know any good anime?
I have watched:
Deathnote
Bleach
Naruto
Hunter x Hunter
Prince of Tennis <-- My favorite (something like this would be best)
I don't like things like:
cowboy bebop
Ghost in the Shell
9 AnswersComics & Animation1 decade agoWhat to get my girlfriend for christmas?
we are 16 and last year she got me a bunch of great struff. All I got her was a set of picture frames, which im pretty sure she liked, but it still didn't compare. She doesn't like jewelry and she is watching her weight. Any ideas. Experiences are always the best presents.
3 AnswersSingles & Dating1 decade agoBablolat shoes?
I currently have the Bablolat Propulse and they have lasted me a long time. I like them a lot, but finally they are worn out. I was thinking about getting the Babolat Team All Court, any comments on the difference between the two shoes or which one is better.
5 AnswersTennis1 decade agoNeed help with PSAT??
PSATs are coming up very soon and i need a way to study. Any tips?
1 AnswerStandards & Testing1 decade ago