Page 5 of 21 FirstFirst ... 234567815 ... LastLast
Results 41 to 50 of 207

Thread: Linux Quiz

  1. #41
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    Originally posted by leftism@20 February 2004 - 04:32
    The questions seem to have dried up so.....

    If you have these files in your home directory...

    file.c
    main.c
    defines.h
    program.tar.gz
    index.html

    How can you delete the C source files and the header file only, using just one command?
    ..............dried up

    *waits for competition*

    Why make it difficult just use "rm" and delete all that shit

  2. Software & Hardware   -   #42
    Originally posted by shn
    Why make it difficult just use "rm" and delete all that shit
    Because the idea isnt to "delete all that shit", just the C files and the header file without having to use the rm command 3 times in a row

  3. Software & Hardware   -   #43
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    41
    Posts
    3,824
    im guesssing something along the lines of

    rm *.c | *.h

  4. Software & Hardware   -   #44
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    how do you change the # in the terminal window to $, or whatever string you want?

  5. Software & Hardware   -   #45
    @4play Your on the right track, but thats not the right answer


    @shn

    I would guess that you have to change something in .bashrc?

  6. Software & Hardware   -   #46
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    Originally posted by leftism@20 February 2004 - 08:51
    @4play Your on the right track, but thats not the right answer


    @shn

    I would guess that you have to change something in .bashrc?
    The correct asnwer is typing PS1="$" from a terminal.

  7. Software & Hardware   -   #47
    Originally posted by shn
    The correct asnwer is typing PS1="$" from a terminal.
    But wouldn't that mean you'd have to do that every time you logged in? If you put it in the .bashrc file it will always be $.

  8. Software & Hardware   -   #48
    shn's Avatar Ð3ƒμ|\|(7
    Join Date
    May 2003
    Posts
    3,568
    Originally posted by leftism+20 February 2004 - 09:04--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism &#064; 20 February 2004 - 09:04)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn
    The correct asnwer is typing PS1="&#036;" from a terminal.
    But wouldn&#39;t that mean you&#39;d have to do that every time you logged in? If you put it in the .bashrc file it will always be &#036;.[/b][/quote]
    If you wanted to set the shell variable to that permanently then yes you could edit .bashrc

    PS1=""
    export PS1



    In vi, what does this expression yield /^[a-zA-Z]/

  9. Software & Hardware   -   #49
    Originally posted by shn
    In vi, what does this expression yield /^[a-zA-Z]/
    It searches for non-alphabetic characters?

    Assuming I got it right, (fingers crossed ) What command would you issue to block all incoming packets to port 80 (TCP) ?

  10. Software & Hardware   -   #50
    Poster
    Join Date
    Jan 2003
    Posts
    889
    iptables -A INPUT -i ppp0 -p tcp 80

    Probably not right...I just read a little bit from the man page of iptables


Page 5 of 21 FirstFirst ... 234567815 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •