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.

Mac OS command line question?

Can anyone please tell me what this command would do in couple of lines and how i can do that from windows?

# touch man.txt ; man touch cat.txt; man cat | man.txt ; wc -l man.txt; kill -9 1

I gotta admit I have no clue but my friend is being a showoff by asking me this kinda question. So I hope someone could save me here.

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    do not run that command!

    it's several commands running one after another.

    don't trust what your friend says specially in the terminal, i'll tell you why

    touch man.txt = create the empty file man.txt

    man touch cat.txt = show the manual (help) for the command touch and cat.txt (it will fail since cat.txt is not a command)

    man cat | man.txt = show the manual for the cat command and send it to the file man.txt

    wc -l man.txt = count the lines in man.txt

    kill -9 1 = kills the program that is running with a process id of 1

    this last command i will not ever recommend you run.

    oh yeah, to do the same thing under windows you put a & between commands

    c:\ cd \windows & dir /w & pause & cd .. & dir /w & pause

  • ?
    Lv 4
    5 years ago

    i desire to advise you employ iMoviesoft Audio Converter for Mac, it could convert between all usual audio formats., inclusive of MP3, WAV, MID, MIDI, M4A, MP2, AAC, AC3 jointly with changing MP3 to WAV, AAC to AC3, etc. you're able to have a attempt to apply it, stable luck!

  • 1 decade ago

    Haha good one, bro!

Still have questions? Get your answers by asking now.