symas openldap vs openldap source 2008

Upload: pjberkmans

Post on 17-Feb-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    1/13

    Linux Troubleshooting Tricks

    Research Computing Support Group

    Division of Information Technology

    http://www.rcsg.rice.edu/rcsg!rice.edu"

    !ricercsg on Twitter

    Chandler #il$ersonchwil$!rice.edu

    http://www.rcsg.rice.edu/http://www.rcsg.rice.edu/
  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    2/13

    Set Up Your Environment

    %or &ash users' somegreat twea$s:

    (dit )/.&ashrc to addaliases and environmentvaria&les you will useoften

    *se envto see yourcurrent environment

    + source )/.&ashrc

    # Check for interactive session[ -z "$PS1" ] && return

    # Colorize various outputs# see what i' lookin! foreport %PP()*S+,--color+auto,# ake ls colorize ./ file t/pealias ls+"0.in0ls - --color+auto,

    alias ll+"0.in0ls -la --color+auto,

    # i2 up lesseport 3%SS+"-i2"# ake sure ever/thin! uses lesseport P4%+"less -i2"

    # histor/ options# 1st5 6on't put successive5 6uplicate# coan6s in histor/ fileeport 7)S()*%+"&"# 8n65 appen6 each shell's histor/ to /# ain histor/ file on eitshopt -s histappen6

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    3/13

    TAB TAB (Completion)

    Save $eystro$es &y using command completion,T- $ey

    0earn some &asic &ash su&stitutions

    11 repeat the last command

    1+ repeat the last command2s last argument

    13pat repeat the last command that included 4pat5

    16 repeat the command at position 6 in your history

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    4/13

    GE!

    7ptions worth $nowing

    8i case insensitive

    8v reverse match

    8c 9ust count matches

    8l print filenames only

    8r recursive ,searchall files in directory

    Contet ,what to print

    8- 6 print 6 lines after

    8 6 print 6 lines &efore

    8C 6 print 6 lines around

    8o 7nly print the match

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    5/13

    "#ile" is Your $rien%

    # file 9.aau:o; %3 relocata.le5 ?

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    6/13

    &'n%ling Lots o# $iles

    %irst piece of advice is don2t generate lots offiles. It &rea$s file systems.

    The ls command sorts &y default. *se 8u to

    avoid the penalty when directories grow huge

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    7/13

    h is #or &um'n

    df

    du

    ls sort

    6 where is my Buota &eing used3

    + du 8h +7;( sort 8h

    + ls 8lh

    The following utilities offer the 8h flag to output ,oraccept input in human reada&le format.

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    8/13

    T'ke C're ith S*mlinks

    eware of trailing slashes when using rm andsymlin$s

    Try the following in a test directory:

    $ k6ir a

    $ touch a0test:tt

    $ ln -s a .

    $ ln -s a c$ r -ir .

    $ r -ir c0

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    9/13

    +no, *our Linux -istro

    It helps to $now someR

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    10/13

    SS& $'ster

    Ssh transfers going slowly3 Simplify theencryption overhead.

    + scp 8c arcfour localfile remote:remotefile

    *sing rsync3

    + rsync 8e 4ssh 8c arcfour5

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    11/13

    SS& $'ster

    Ssh transfers going slowly3 Simplify theencryption overhead.

    + scp 8c arcfour localfile remote:remotefile

    *sing rsync3

    + rsync 8e 4ssh 8c arcfour5

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    12/13

    SS& +e*s

    ssh8$eygen 8t rsa

    *se a password ,and ssh8agent ,;ac' 0inu

    ssh8copy8id ,0inu only

    #atch the permissions on )/.ssh and +7;(

    *se 8- to forward ,tunnel your agent

  • 7/23/2019 Symas OpenLDAP vs OpenLDAP Source 2008

    13/13

    SS& .ptions

    Commonly used options can go in )/.ssh/config

    See the sshEconfig man page for options

    7ashGnown7osts /es # .scures where /ou ssh

    7ost 9:rice:e6u # Hil6car6 host stanza

    Iser /*et)J # 4voi6s -l or /*et)JKorwar6211(ruste6 /es # autoaticall/ inclu6e -A