Random Linux+ Question March 15

Discussion in 'Linux+' started by tripwire45, Mar 16, 2006.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    Which of the following is the correct command to allow .bash_history to be appendable only and not allow a user to delete the contents?

    A. chattr +A /home/username/.bash_history
    B. chattr +a /home/username/.bash_history
    C. chattr -A /home/username/.bash_history
    D. chattr -a /home/username/.bash_history

    Answer later.
     
    Certifications: A+ and Network+
  2. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Wow - yet another command I'd not heard of, which I had to research!

    I'll therefore go for [HIDE]B[/HIDE]

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  3. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,878
    181
    256
    [HIDE]Never heard of it either but I have a hunch <google> it's...

    B
    [/HIDE]
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  4. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224
    I'll guess [HIDE]B[/HIDE]
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685
  5. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    180
    287
    You all got it. The right answer is "B". The -a option sets the file attribute so that it can only be appended. The plus sign ( + ) adds the attribute. A minus sign ( - ) would remove it.
     
    Certifications: A+ and Network+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.