EOS Installation

EOS Usage examples

List a directory on eos:

  • eos ls -l /eos/bgv

Create and then delete a directory

  • eos mkdir /eos/bgv/testdir1
  • eos rmdir /eos/bgv/testdir1 OR eos rm -r /eos/bgv/testdir1

Copy file(s) to eos:

  • Using xrdcp
    • xrdcp Run_file.mdf root://eospublic.cern.ch//eos/bgv/data
    • xrdcp Run* root://eospublic.cern.ch//eos/bgv/data
    • Similarly to copy back: xrdcp root://eospublic.cern.ch//eos/bgv/data/2015/raw/Run_file.mdf ~/tmp_data/
  • With eos cp
    • Copy Run_file.mdf file to /eos/bgv/ directory: eos cp /eos/bgv/data/2015/Run_file.mdf /eos/bgv/
    • Copy all plain files in /eos/bgv/data/tmp1 to /eos/bgv/data/tmp2/: eos cp /eos/bgv/data/tmp1 /eos/bgv/data/tmp2/
    • Copy the full hierarchy from /var/data/ to /var/data to /eos/foo/user/data/ : eos cp -r /eos/bgv/data/tmp1/ /eos/bgv/data/tmp2/
      • Empty directories won't show up on the target!
    • Remark: If you deal with directories always add a '/' in the end of source or target paths.

Remove file from eos:

  • eos rm /eos/bgv/data/2015/Run_file.mdf

Move files on eos:

  • Moving files on EOS is not supported by design. The user should first copy, then remove.

man pages:

  • man xrdcp, man eos, man eos-cp, etc
  • Can be found here (.tar.gz files): /afs/cern.ch/project/eos/installation/public/share/man/man1/
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2016-06-24 - AndreasAlexopoulos
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback