Home Second-generation sequencing > SSH reference card Rambler's Top100

Short SSH reference card

Tutorials

  • manual for 'comand': 'man comand' or 'comand --help'
  • learn course: learn


Free telnet/ssh client: PuTTY



Login/Logout

  • login from one server to another: ssh -l 'name' 'host'
  • close session: logout
  • stop terminal: exit
  • recent commands: history


Folders

  • change folder to 'dir1': cd dir1
  • create folder 'dir1': mkdir dir1
  • show current location: pwd
  • folder content: ls
    • short: ls [dir1]
    • full description: ls -l [dir1]


Files

  • copy file f1 into f2: cp dir1/f1 dir2/f2
  • concatenates f1 and f2 into f3: cat f1 f2 > f3
  • compare two files: cmp f1 f2
  • lists file differences: diff f1 f2


File content: more fileA

  • start at line number num: +num
  • squeeze multiple blank lines into one: -s


  • COMMANDS
  • quit: q (Q)
  • help: h or ?
  • screen forward: SPACE
  • string forward: RETURN
  • screen back: b
  • show current line number: =


Remove files/folders: rm

  • delete (remove) files 'file1 & file2': rm file1 file2
  • remove with mask: rm *.txt
  • remove directory: 'dir1 & dir2': rm -r dir1 dir2
  • remove directory 'dir1' w/o questions: rm -rf dir1
  • remove directory 'dir1' interactively: rm -ri dir1


Rename/move files/folders: mv

  • rename file f1 as f2: mv f1 f2
  • put 'file1' in 'dir1': mv file1 dir1
  • put 'dir1' in 'dir2': mv dir1 dir2
  • move with mask: mv dir1/*.html dir2/


Links: ln

  • symbolic link: ln -s 'target' 'name_of_the_link'


Access rights: chmod

  • change access to 'file1': chmod 777 file1
  • change access recursive to files and folders: chmod -R 644 *


Archives

  • unpack tar.gz-archive 'archive1': tar -zxf archive1.tar.gz
  • unpack zip-archive 'archive1': unzip archive1.zip
  • pack file 'file1': gzip -c file1 > archive1.gz
  • pack 'dir1' into archive:
    • tar -czf archive1.tar.gz dir1
    • tar cf - dir1 | gzip > archive1.tgz


ftp- file transfer

  • connection: ftp 'server_address'
  • put 'file1': put file1
  • get 'file1': mget file1
  • close connection: quit


joe-editor

  • edit 'file1': joe file1


  • COMMANDS
  • Ctrl-K, H — help
  • Ctrl-K, F — search
  • Ctrl-L — next search position
  • Ctrl-Y — remove string
  • Ctrl-K, X — exit w/o saving file
  • Ctrl-C — exit with saving file




Second-generation sequencing
URL: http://seq.zbio.net
e-mail: soldatov@molgen.mpg.de
visits:
Warning: require(/home/molbiol/data/www/vphp/include.php) [function.require]: failed to open stream: No such file or directory in /usr/home/molbiol/domains/molbiol.ru/public_html/seq/ssi/counter.php on line 6

Fatal error: require() [function.require]: Failed opening required '/home/molbiol/data/www/vphp/include.php' (include_path='.:/usr/local/lib/php') in /usr/home/molbiol/domains/molbiol.ru/public_html/seq/ssi/counter.php on line 6
Last modification: 01/12/08

seq.zbio.net  ·  soldatov@molgen.mpg.de

molbiol.ru - methods, information and programs for molecular biologists   Rambler