6HPLQDULR25&$&$5) '%RQDFRUVL -XO\ 287/,1(

Size: px
Start display at page:

Download "6HPLQDULR25&$&$5) '%RQDFRUVL -XO\ 287/,1("

Transcription

1 Objectivity/DB DB : a few basic exercises '%RQDFRUVL -XO\ 287/,1( How to create a shallow copy of an existing FD How to add/create DBs to this FD How to delete a DB from my FD How to re-attach a DB to my FD How to move DBs around in the FS Detecting and removing stale locks

2 How to create a shallow copy of an existing FD n create on your workstation a directory /[yourname] and cd into it o create a directory /myoofd and cd into it p check AMS and lock-server status [infn-corsi07] ~/daniele/myoofd > oocheckams Objectivity/DB (TM) Check AMS Utility, Version Copyright (c) Objectivity, Inc 1994, All rights reserved. AMS is running on 'infn-corsi07.corsi.infn.it'. [infn-corsi07] ~/daniele/myoofd > oocheckls infn-corsi98.corsi.infn.it Objectivity/DB (TM) Check Lock Server Utility, Version Copyright (c) Objectivity, Inc 1994, All rights reserved. The Lock Server is running on 'infn-corsi98.corsi.infn.it'. ) in the following we will both use a FD and copy and manipulate it locally

3 Â we can use muon0300.boot and muon0300.fddb : (original location: cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/ ) [infn-corsi07] ~/daniele/myoofd > echo $OO_FD_BOOT OO_FD_BOOT: Undefined variable. [infn-corsi07] ~/daniele/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. ** Error #11514: oodumpcatalog: Missing Federated Database name. No Federated Database name specified, and no default (OO_FD_BOOT) available. Processing terminated. [infn-corsi07] ~/daniele/myoofd > setenv OO_FD_BOOT cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/muon0300.boot [infn-corsi07] ~/daniele/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. FD Name = muon0300 FD ID = 101 FD File = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/muon0300.fddb Boot File = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/muon0300.boot Jnl Dir = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300 Lock Host = cmsfarm1gw.bo.infn.it ( )

4 VHH 25&$RYHUYLHZ SDUW 6HPLQDULR25&$&$5) The FD catalogue : oodumpcatalog [infn-corsi07] ~/daniele/myoofd > oodumpcatalog FD Name = muon0300 FD ID = 101 FD File = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/muon0300.fddb Boot File = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/muon0300.boot Jnl Dir = cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300 Lock Host = cmsfarm1gw.bo.infn.it DB Name = CARF_System.META.muonHit118 DB ID = 7001 DB Image = cmsfarm1gw.bo.infn.it:: /db1/mb1mu_pt20/carf_system.meta.muonhit118.muontest0300.db ( ) DBs also have a DBID (and a DB Name), unique within one FD but not across them even if they share the same lockserver should still be unique if you want to share your DBs DBs have a DB Image path to specify their location (actually stored in the.fddb)

5 Â we can copy muon0300.boot and muon0300.fddb : (original location: cmsfarm1gw.bo.infn.it::/gwpool/cmsdata/db/muon0300/ ) c if you can get access to the CMS farm, do this: [infn-corsi07] ~/daniele/myoofd > scp cmsfarm1gw.bo.infn.it: /gwpool/cmsdata/db/muon0300/muon0300.boot. cmsprod@cmsfarm1gw.bo.infn.it's password: muon0300.boot 0 KB 0.2 kb/s ETA: 00:00:00 100% [infn-corsi07] ~/daniele/myoofd > scp cmsfarm1gw.bo.infn.it: /gwpool/cmsdata/db/muon0300/muon0300.fddb. cmsprod@cmsfarm1gw.bo.infn.it's password: muon0300.fddb 8576 KB kb/s ETA: 00:00:00 100% [infn-corsi07] ~/daniele/myoofd > ls -trl -rw-r--r-- 1 cmsprod zh 179 Jul 22 19:09 muon0300.boot -rw-r--r-- 1 cmsprod zh Jul 22 19:09 muon0300.fddb d otherwise just copy it from my local directory: [infn-corsixx] ~/[yourname]/myoofd > cp ~/daniele/myoofd/muon0300.boot. [infn-corsixx] ~/[yourname]/myoofd > cp ~/daniele/myoofd/muon0300.fddb.

6 VHH 25&$RYHUYLHZ SDUW Example of bootfile FDID FDs have a pagesize (Objy/DB reads and writes in pages) CMS uses a 32kb pagesize. [infn-corsi07] ~/daniele/myoofd > cat muon0300.boot oofdnumber=101 oolfdnumber=65535 oopagesize=32768 oolockservername=[mypc].bo.infn.it oofddbhost=[mypc].bo.infn.it oofddbfilename=/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb oojnlhost=[mypc].bo.infn.it oojnlpath=/gwpool/home/cmsprod/daniele/myoofd/journal name of lock-server host Host name and path of the journal files directory Host name and path of the.fddb file 9 the BOOT FILE name is the only one you should know in your application 9 it is created and managed using Objy/DB tools ( oonewfd, oochange )

7 n first of all, change the.boot file according to your needs: %()25( [infn-corsi07] ~/daniele/myoofd > cat muon0300.boot oofdnumber=3011 oolfdnumber=65535 oopagesize=32768 oolockservername=cmsfarm1gw.bo.infn.it oofddbhost=cmsfarm1gw.bo.infn.it oofddbfilename=/gwpool/cmsdata/db/muon0900/muon0900.fddb $)7(5 o then : [infn-corsi07] ~/daniele/myoofd > cat muon0300.boot oofdnumber=3011 oolfdnumber=65535 oopagesize=32768 oolockservername=infn-corsi98.corsi.infn.it oofddbhost=infn-corsi98.corsi.infn.it oofddbfilename=/gwpool/home/cmsprod/[yourname]/myoofd/muon0300.fddb [infn-corsi07] ~/[yourname]/myoofd > setenv OO_FD_BOOT /gwpool/home/cmsprod/[yourname]/myoofd/muon0300.boot [infn-corsi07] ~/[yourname]/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. ** Error #2175: oohandle(oofdobj)::open(): Object Manager: The Lock Server host registered in the Federated Database file (pccmsgw.cmsfarm1.bo.infn.it) does not match the host given in the bootstrap file (infn-corsi98.corsi.infn.it). ( ) to make it into a real FD instead of just a pair of copied files, it must be installed!

8 n install the FD muon0300 : Â using a script (by T.Wildish) Â by hand using Objy/DB commands PHWKRG o copy /afs/cern.ch/w/wildish/public/bin/shallow-federation-copy.pl : [infn-corsi07] ~/daniele/myoofd > cp ~/daniele/myoofd/shallow-federation-copy.pl. [infn-corsi07] ~/daniele/myoofd > ls -trl total rwxr-xr-x 1 cmsprod zh Jul 20 11:46 muon0300.fddb -rw-r--r-- 1 cmsprod zh 152 Jul 20 16:38 muon0300.boot -rwxr-xr-x 1 cmsprod zh 5792 Jul 20 16:40 shallow-federation-copy.pl p run the script : [infn-corsi07] ~/daniele/myoofd > shallow-federation-copy.pl --source muon0300.boot --lockserver infn-corsi98.corsi.infn.it --nocopy Lockserver will be infn-corsi98.corsi.infn.it Using your Unix account ID for the federation ID: 101 Setting unix file permissions on the federation file OOInstalling the new federation parameters... Updating Name Service values... Now updating System Name Space (catalog) values... WARNING: Updating of Database File locations will be skipped... Federated Database Installation complete. All done. Your bootfile is infn-corsi07::/gwpool/home/cmsprod/daniele/myoofd/muon0300.boot

9 [infn-corsi07] ~/daniele/myoofd > ls -trl total rwxr-xr-x 1 cmsprod zh 5792 Jul 22 20:44 shallow-federation-copy.pl -rwxr-xr-x 1 cmsprod zh Jul 22 20:46 muon0300.fddb -rw-r--r-- 1 cmsprod zh 254 Jul 22 20:46 muon0300.boot drwxrwxr-x 2 cmsprod zh 4096 Jul 22 20:46 journal [infn-corsi07] ~/daniele/myoofd > cat muon0300.boot oofdnumber=101 oolfdnumber=65535 oopagesize=32768 oolockservername=infn-corsi98.corsi.infn.it oofddbhost=infn-corsi98 oofddbfilename=/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb oojnlhost=infn-corsi98 oojnlpath=/gwpool/home/cmsprod/daniele/myoofd/journal the FD has been installed locally, as can be checked with oodumpcatalog : [infn-corsi07] ~/daniele/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. FD Name = muon0300 FD ID = 101 FD File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb Boot File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Jnl Dir = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/journal Lock Host = infn-corsi98.corsi.infn.it ( )

10 [infn-corsi07] ~/daniele/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. PHWKRG FD Name = muon0300 FD ID = 101 FD File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb Boot File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Jnl Dir = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/journal Lock Host = infn-corsi98.corsi.infn.it DB Name = CARF_System.META.muonHit118 DB ID = 7001 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/carf_system.meta.muonhit118.muontest0300.db DB Name = LogBook.META.muonHit118 DB ID = 7002 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/logbook.meta.muonhit118.muontest0300.db DB Name = RUNS.META.muonHit118 DB ID = 7003 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/runs.meta.muonhit118.muontest0300.db DB Name = SysCollections.META.muonHit118 DB ID = 7004 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/syscollections.meta.muonhit118.muontest0300.db DB Name = SelectedStream.META.muonHit118 DB ID = 7005 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/selectedstream.meta.muonhit118.muontest0300.db ( )

11 n install the FD muon0300 : Â using a script (by T.Wildish) Â by hand using Objy/DB commands PHWKRG First of all, restore the initial situation : [infn-corsi07] ~/daniele/myoofd > rm -R * [infn-corsi07] ~/daniele/myoofd > cp ~/daniele/myoofd/muon0300.boot_correct muon0300.boot [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > cp ~/daniele/myoofd/muon0300.fddb. HGLWPXRQERRW DQGSXW³<2851$0(

12 n install the FD muon0300 : Â using a script (by T.Wildish) Â by hand using Objy/DB commands PHWKRG o create the journal directory, the directory where journal files are stored : [infn-corsi07] ~/daniele/myoofd > mkdir journal p use ooinstallfd : [infn-corsi07] ~/daniele/myoofd > ooinstallfd -fdnumber lockserverhost infn-corsi98.corsi.infn.it -jnldirpath /gwpool/home/cmsprod/daniele/myoofd/journal/ -nocatalog -nocheck /gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Objectivity/DB (TM) Install Federated Database Utility, Version Copyright (c) Objectivity, Inc 1993, All rights reserved. Updating Name Service values... Now updating System Name Space (catalog) values... WARNING: Updating of Database File locations will be skipped... Federated Database Installation complete. the FD has been installed locally, as can be checked with oodumpcatalog :

13 [infn-corsi04] ~/daniele/myoofd > oodumpcatalog Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. PHWKRG FD Name = muon0300 FD ID = FD File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb Boot File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Jnl Dir = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/journal Lock Host = infn-corsi98.corsi.infn.it DB Name = CARF_System.META.muonHit118 DB ID = 7001 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/carf_system.meta.muonhit118.muontest0300.db DB Name = LogBook.META.muonHit118 DB ID = 7002 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/logbook.meta.muonhit118.muontest0300.db DB Name = RUNS.META.muonHit118 DB ID = 7003 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/runs.meta.muonhit118.muontest0300.db DB Name = SysCollections.META.muonHit118 DB ID = 7004 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/syscollections.meta.muonhit118.muontest0300.db DB Name = SelectedStream.META.muonHit118 DB ID = 7005 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/selectedstream.meta.muonhit118.muontest0300.db ( )

14 Now I have my shallow copy of muon0300 FD If you liked the game so far, play it further and go on!

15 How to add/create DBs to this FD If I add/create DBs to my shallow copy of muon0300 FD, the original FD will not be modified! n Created and added DB files will be attached to the FD (usually I don't create DBs like this: ORCA and CARF will create DBs by theirselves as needed...) [infn-corsi07] ~/daniele/myoofd > oonewdb -db MyTestDB muon0300.boot Objectivity/DB (TM) Create Database Utility, Version Copyright (c) Objectivity, Inc 1992, All rights reserved. Created Database MyTestDB [DBID = 2]. [infn-corsi07] ~/daniele/myoofd > ls -trl total rw-r--r-- 1 cmsprod zh 262 Jul 22 20:06 muon0300.boot -rw-r--r-- 1 cmsprod zh Jul 22 20:11 muon0300.fddb drwxr-xr-x 2 cmsprod zh 4096 Jul 22 20:11 journal -rw-rw-rw- 1 cmsprod zh Jul 22 20:11 MyTestDB.muon0300.DB [infn-corsi07] ~/daniele/myoofd > oodumpcatalog grep -C MyTest DB Name = MyTestDB DB ID = 2 DB Image = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db The new DB is created and attached!

16 o Let s check the attribute of the newly created DB : [infn-corsi07] ~/daniele/myoofd > oofile MyTestDB.muon0300.DB Objectivity/DB (TM) Examine Database File Utility, Version Copyright (c) Objectivity, Inc 1992, All rights reserved. Attempting to interpret the file... Data format : Linux Database format compatible with Objectivity release through 5.x File Type : Database DB ID : 2 Page Size : You may only attach this Database file to a Federated Database with the same Page Size and Schema. ***************************WARNING************************** * You should verify that this file does not belong to an * * active Federated Database before moving or modifying it. * ************************************************************

17 Beginning of oodumpcatalog s output just after the oonewdb command: Objectivity/DB (TM) List Database Files Utility, Version Copyright (c) Objectivity, Inc 1990, All rights reserved. FD Name = muon0300 FD ID = FD File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.fddb Boot File = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Jnl Dir = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/journal Lock Host = infn-corsi98.corsi.infn.it DB Name = MyTestDB DB ID = 2 DB Image = infn-corsi98::/gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db DB Name = CARF_System.META.muonHit118 DB ID = 7001 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/carf_system.meta.muonhit118.muontest0300.db DB Name = LogBook.META.muonHit118 DB ID = 7002 DB Image = cmsfarm1gw.bo.infn.it::/db1/mb1mu_pt20/logbook.meta.muonhit118.muontest0300.db ( )

18 How to delete a DB from my FD n You can use the Objy/DB command oodeletedb : [infn-corsi07] ~/daniele/myoofd > oodeletedb -catalogonly -db MyTestDB muon0300.boot Objectivity/DB (TM) Delete Database Utility, Version Copyright (c) Objectivity, Inc 1992, All rights reserved. Are you sure you want to delete the Database? [Y-N]=> y Deleted the Database "MyTestDB" (ID = 2) from the Federated Database catalog. The -catalogonly flag ensures that the file is not deleted from the disk: the DB file is still there, but the DB entry has gone from the catalogue [infn-corsi07] ~/daniele/myoofd > oodumpcatalog grep -C MyTestDB [infn-corsi04] ~/daniele/myoofd > ls -trl total rw-r--r-- 1 cmsprod zh 262 Jul 22 20:06 muon0300.boot -rw-rw-rw- 1 cmsprod zh Jul 22 20:11 MyTestDB.muon0300.DB -rw-r--r-- 1 cmsprod zh Jul 22 20:23 muon0300.fddb drwxr-xr-x 2 cmsprod zh 4096 Jul 22 20:23 journal

19 How to re-attach a DB to my FD n You can use the Objy/DB command ooattachdb : [infn-corsi07] ~/daniele/myoofd > ooattachdb -id db MyTestDB -filepath /gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db -host infn-corsi98.corsi.infn.it muon0300.boot Objectivity/DB (TM) Attach Database Utility, Version Copyright (c) Objectivity, Inc 1992, All rights reserved. First pass through... Attaching database...mytestdb ** Error #2837: DC: The Identifier specified (7001) is already being used by the Database "CARF_System.META.muonHit118". ** Error #2928: ooattachdb : An error has occurred. Processing terminated. Dangerous: always check id XXXX: it must be FREE!

20 [infn-corsi07] ~/daniele/myoofd > oodumpcatalog grep -C 2222 [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > ooattachdb -id db MyTestDB -filepath /gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db -host infn-corsi98.corsi.infn.it muon0300.boot Objectivity/DB (TM) Attach Database Utility, Version Copyright (c) Objectivity, Inc 1992, All rights reserved. First pass through... Attaching database...mytestdb Second pass through... Attaching database...mytestdb [infn-corsi07] ~/daniele/myoofd > oodumpcatalog grep -C 2222 DB Name = MyTestDB DB ID = 2222 DB Image = infn-corsi98.corsi.infn.it:: /gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db Note: you can also attach the DB to another FD ( just specify a different bootfile). In advance, always remember to check for id XXXX to be FREE!

21 How to move DBs around in the FS How can I move a DB file to another directory? n Create the directory and move the DB file using standard UNIX commands... [infn-corsi07] ~/daniele/myoofd > ls -trl total rw-r--r-- 1 cmsprod zh 262 Jul 22 20:06 muon0300.boot -rw-r--r-- 1 cmsprod zh Jul 22 20:32 muon0300.fddb drwxr-xr-x 2 cmsprod zh 4096 Jul 22 20:32 journal -rw-rw-rw- 1 cmsprod zh Jul 22 20:32 MyTestDB.muon0300.DB [infn-corsi07] ~/daniele/myoofd > mkdir mydir [infn-corsi07] ~/daniele/myoofd > mv MyTestDB.muon0300.DB mydir/ [infn-corsi07] ~/daniele/myoofd > cd mydir/ [infn-corsi07] ~/daniele/myoofd/mydir > ls -trl total 548 -rw-rw-rw- 1 cmsprod zh Jul 22 20:32 MyTestDB.muon0300.DB the catalogue is still ignorant [infn-corsi07] ~/daniele/myoofd/mydir > oodumpcatalog grep -C 2222 DB Name = MyTestDB DB ID = 2222 DB Image = infn-corsi98.corsi.infn.it:: /gwpool/home/cmsprod/daniele/myoofd/mytestdb.muon0300.db so...

22 o remember to notify the FD about the new DB file location... [infn-corsi07] ~/daniele/myoofd/mydir > oochangedb -db MyTestDB -filepath /gwpool/home/cmsprod/daniele/myoofd/mydir/mytestdb.muon0300.db -host infn-corsi98.corsi.infn.it -catalogonly /gwpool/home/cmsprod/daniele/myoofd/muon0300.boot Objectivity/DB (TM) Change Database Utility, Version Copyright (c) Objectivity, Inc 1993, All rights reserved. p so that the catalog can be properly updated : [infn-corsi07] ~/daniele/myoofd/mydir > oodumpcatalog grep -C 2222 DB Name = MyTestDB DB ID = 2222 DB Image = infn-corsi98.corsi.infn.it:: /gwpool/home/cmsprod/daniele/myoofd/mydir/mytestdb.muon0300.db The new filepath for this DB file in the FD catalogue has been specified!

23 Detecting and removing stale locks Stale locks are locks that are left behind by processes that die abnormally Trivial example (but quite self-explanatory and very useful to a beginner...): n run ootoolmgr to view the FD: browsing it (by selecting Browse FD from the Tools menu) will create 2 read locks : [infn-corsi07] ~/daniele/myoofd > ootoolmgr muon0300.boot & [1] [infn-corsi07] ~/daniele/myoofd > oolockmon Objectivity/DB (TM) Lock Monitor Utility, Version Copyright (c) Objectivity, Inc 1989, All rights reserved. Lock Table for Lock Server on node "infn-corsi98.corsi.infn.it" - your UID is 101 UID HostID PID TransID APID Mode Type FdbID DbID OclID Lock table displayed, no entries. [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd >

24 [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > [infn-corsi07] ~/daniele/myoofd > oolockmon here I started browsing the FD Objectivity/DB (TM) Lock Monitor Utility, Version Copyright (c) Objectivity, Inc 1989, All rights reserved. Lock Table for Lock Server on node "infn-corsi98.corsi.infn.it" - your UID is 101 UID HostID PID TransID APID Mode Type FdbID DbID OclID infn-corsi read Ocl infn-corsi read Ocl Lock table displayed, 2 entries.

25 o kill the ootoolmgr process and attempt to clean up the locks afterwards: [infn-corsi07] ~/daniele/myoofd > pp grep ootoolmgr cmsprod pts/1 S 22:58 0:01 ootoolmgr muon0300.boot [infn-corsi07] ~/daniele/myoofd > kill [1] Killed ootoolmgr muon0300.boot [infn-corsi07] ~/daniele/myoofd > oolockmon Objectivity/DB (TM) Lock Monitor Utility, Version Copyright (c) Objectivity, Inc 1989, All rights reserved. Lock Table for Lock Server on node "infn-corsi98.corsi.infn.it" - your UID is 101 UID HostID PID TransID APID Mode Type FdbID DbID OclID infn-corsi read Ocl infn-corsi read Ocl Lock table displayed, 2 entries. Locks are still there! We absolutely need to remove them!

26 n Remove locks : Â cleaning up with the transaction ID Â cleaning up all transactions started locally o Use the Objy/DB command oocleanup : [infn-corsi07] ~/daniele/myoofd > oocleanup -transaction muon0300.boot Objectivity/DB (TM) Transaction Recovery Utility, Version Copyright (c) Objectivity, Inc 1991, All rights reserved. Recovered transaction for FD "muon0300.boot". Finished processing all autonomous partitions. Finished attempting to recover all specified transactions. [infn-corsi07] ~/daniele/myoofd > oolockmon Objectivity/DB (TM) Lock Monitor Utility, Version Copyright (c) Objectivity, Inc 1989, All rights reserved. PHWKRG Lock Table for Lock Server on node "infn-corsi98.corsi.infn.it" - your UID is 101 UID HostID PID TransID APID Mode Type FdbID DbID OclID Lock table displayed, no entries. Locks removed. OK.

27 n Remove locks : Â cleaning up with the transaction ID Â cleaning up all transactions started locally o Instead of having to find the transaction ID for all the transactions that are in process, I can just tell it to clean up all transactions that were started locally, i.e. on this host [infn-corsi07] ~/daniele/myoofd > oocleanup -local muon0300.boot Objectivity/DB (TM) Transaction Recovery Utility, Version Copyright (c) Objectivity, Inc 1991, All rights reserved. Recovering local transactions for FD "muon0300.boot" on host "infn-corsi04.corsi.infn.it". ** Error #3104: oocleanup: Failed to recover transaction for FD "muon0300.boot". Error #0:. Finished processing all autonomous partitions. Finished attempting to recover all specified transactions. [infn-corsi07] ~/daniele/myoofd > oolockmon Objectivity/DB (TM) Lock Monitor Utility, Version Copyright (c) Objectivity, Inc 1989, All rights reserved. PHWKRG Lock Table for Lock Server on node "infn-corsi98.corsi.infn.it" - your UID is 101 UID HostID PID TransID APID Mode Type FdbID DbID OclID Lock table displayed, no entries. Again, locks removed. OK.

28 Is it enough? n No (obviously ). Look to official documentation on the Web (i.e. : and just practice Objy/DB yourself, n Remember that help on single commands is available by typing: [Objy-command] -help Sometimes trivial, sometimes useful, sometimes tricky. But use it. Acknowledgements & credits Thanks to T.Wildish for providing the original material for most of these exercises (see ORCA Tutorial - March 2001) and to C.Grandi for his help and support.

Introduction to the Linux Command Line

Introduction to the Linux Command Line Introduction to the Linux Command Line May, 2015 How to Connect (securely) ssh sftp scp Basic Unix or Linux Commands Files & directories Environment variables Not necessarily in this order.? Getting Connected

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

LAB #7 Linux Tutorial

LAB #7 Linux Tutorial Gathering information: LAB #7 Linux Tutorial Find the password file on a Linux box Scenario You have access to a Linux computer. You must find the password file on the computer. Objective Get a listing

More information

CENG 334 Computer Networks. Laboratory I Linux Tutorial

CENG 334 Computer Networks. Laboratory I Linux Tutorial CENG 334 Computer Networks Laboratory I Linux Tutorial Contents 1. Logging In and Starting Session 2. Using Commands 1. Basic Commands 2. Working With Files and Directories 3. Permission Bits 3. Introduction

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor

More information

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal.

Read the relevant material in Sobell! If you want to follow along with the examples that follow, and you do, open a Linux terminal. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

Files

Files http://www.cs.fsu.edu/~langley/cop3353-2013-1/reveal.js-2013-02-11/02.html?print-pdf 02/11/2013 10:55 AM Files A normal "flat" file is a collection of information. It's usually stored somewhere reasonably

More information

Working with Basic Linux. Daniel Balagué

Working with Basic Linux. Daniel Balagué Working with Basic Linux Daniel Balagué How Linux Works? Everything in Linux is either a file or a process. A process is an executing program identified with a PID number. It runs in short or long duration

More information

ACS Unix (Winter Term, ) Page 92

ACS Unix (Winter Term, ) Page 92 ACS-294-001 Unix (Winter Term, 2016-2017) Page 92 The Idea of a Link When Unix creates a file, it does two things: 1. Set space on a disk to store data in the file. 2. Create a structure called an inode

More information

Essential Linux Shell Commands

Essential Linux Shell Commands Essential Linux Shell Commands Special Characters Quoting and Escaping Change Directory Show Current Directory List Directory Contents Working with Files Working with Directories Special Characters There

More information

Mills HPC Tutorial Series. Linux Basics I

Mills HPC Tutorial Series. Linux Basics I Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create

More information

Exploring UNIX: Session 3

Exploring UNIX: Session 3 Exploring UNIX: Session 3 UNIX file system permissions UNIX is a multi user operating system. This means several users can be logged in simultaneously. For obvious reasons UNIX makes sure users cannot

More information

Introduction to Unix May 24, 2008

Introduction to Unix May 24, 2008 Introduction to Unix May 24, 2008 Exercises: Privileges REFERENCE Reference: Shah, Steve, "Linux Administration: A Beginner's Guide", 2nd. ed., Osborne press, New York, NY. If you look at files in a directory

More information

Introduction to Linux

Introduction to Linux Introduction to Linux Mukesh Pund Principal Scientist, NISCAIR, New Delhi, India History In 1969, a team of developers developed a new operating system called Unix which was written using C Linus Torvalds,

More information

CST8207: GNU/Linux Operating Systems I Lab Six Linux File System Permissions. Linux File System Permissions (modes) - Part 1

CST8207: GNU/Linux Operating Systems I Lab Six Linux File System Permissions. Linux File System Permissions (modes) - Part 1 Student Name: Lab Section: Linux File System Permissions (modes) - Part 1 Due Date - Upload to Blackboard by 8:30am Monday March 12, 2012 Submit the completed lab to Blackboard following the Rules for

More information

UNIX File Hierarchy: Structure and Commands

UNIX File Hierarchy: Structure and Commands UNIX File Hierarchy: Structure and Commands The UNIX operating system organizes files into a tree structure with a root named by the character /. An example of the directory tree is shown below. / bin

More information

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech Unix File System Class Meeting 2 * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech Unix File System The file system is your interface to: physical

More information

UNIX / LINUX - GETTING STARTED

UNIX / LINUX - GETTING STARTED UNIX / LINUX - GETTING STARTED http://www.tutorialspoint.com/unix/unix-getting-started.htm Copyright tutorialspoint.com Advertisements What is Unix? The Unix operating system is a set of programs that

More information

The Unix Shell & Shell Scripts

The Unix Shell & Shell Scripts The Unix Shell & Shell Scripts You should do steps 1 to 7 before going to the lab. Use the Linux system you installed in the previous lab. In the lab do step 8, the TA may give you additional exercises

More information

CSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak

CSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak CSN08101 Digital Forensics Lecture 2: Essential Linux for Forensics Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak Essential Linux for Forensics You will learn in this lecture: Essential

More information

The UNIX operating system is a set of programs that act as a link between the computer and the user.

The UNIX operating system is a set of programs that act as a link between the computer and the user. Chapter 1: Introduction to Unix 1 INRODUCTION TO UNIX What is Unix? The UNIX operating system is a set of programs that act as a link between the computer and the user. The computer programs that allocate

More information

CENG393 Computer Networks Labwork 1

CENG393 Computer Networks Labwork 1 CENG393 Computer Networks Labwork 1 Linux is the common name given to a large family of operating systems. All Linux-based operating systems are essentially a large set of computer software that are bound

More information

Getting your department account

Getting your department account 02/11/2013 11:35 AM Getting your department account The instructions are at Creating a CS account 02/11/2013 11:36 AM Getting help Vijay Adusumalli will be in the CS majors lab in the basement of the Love

More information

Introduction to Linux. Roman Cheplyaka

Introduction to Linux. Roman Cheplyaka Introduction to Linux Roman Cheplyaka Generic commands, files, directories What am I running? ngsuser@ubuntu:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu

More information

Introduction to Linux Environment. Yun-Wen Chen

Introduction to Linux Environment. Yun-Wen Chen Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type

More information

CS 300. Data Structures

CS 300. Data Structures CS 300 Data Structures Start VirtualBox Search or Windows Run C:\CS300 Launches CS 300/360 Virtual Machine (Eventually) Logon with Zeus password Syllabus http://zeus.cs.pacificu.edu/chadd/cs300f18/syllabus.html

More information

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys Hitchhiker s Guide to VLSI Design with Cadence & Synopsys David Money Harris 17 January 2009 The VLSI design tools at Harvey Mudd College are hosted on a Linux server named chips. This document introduces

More information

Introduction to Linux

Introduction to Linux Introduction to Linux M Tech CS I 2015-16 Arijit Bishnu Debapriyo Majumdar Sourav Sengupta Mandar Mitra Login, Logout, Change password $ ssh, ssh X secure shell $ ssh www.isical.ac.in $ ssh 192.168 $ logout,

More information

Course 144 Supplementary Materials. UNIX Fundamentals

Course 144 Supplementary Materials. UNIX Fundamentals Course 144 Supplementary Materials UNIX Fundamentals 1 Background to UNIX Command Fundamentals This appendix provides a overview of critical commands and concepts Prerequisite knowledge attendees should

More information

Permission and Ownership

Permission and Ownership Permission and Ownership 1. Understanding file and directory ownership Every file on your Linux system, including directories, is owned by a specific user and group. Therefore, file permissions are defined

More information

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

Introduction to Linux

Introduction to Linux Introduction to Linux January 2011 Don Bahls User Consultant (Group Leader) bahls@arsc.edu (907) 450-8674 Overview The shell Common Commands File System Organization Permissions Environment Variables I/O

More information

I/O and Shell Scripting

I/O and Shell Scripting I/O and Shell Scripting File Descriptors Redirecting Standard Error Shell Scripts Making a Shell Script Executable Specifying Which Shell Will Run a Script Comments in Shell Scripts File Descriptors Resources

More information

Links, basic file manipulation, environmental variables, executing programs out of $PATH

Links, basic file manipulation, environmental variables, executing programs out of $PATH Links, basic file manipulation, environmental variables, executing programs out of $PATH Laboratory of Genomics & Bioinformatics in Parasitology Department of Parasitology, ICB, USP The $PATH PATH (which

More information

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world.

Lecture 3. Unix. Question? b. The world s best restaurant. c. Being in the top three happiest countries in the world. Lecture 3 Unix Question? Denmark is famous for? a. LEGO. b. The world s best restaurant. c. Being in the top three happiest countries in the world. d. Having the highest taxes in Europe (57%). e. All of

More information

Introduction to Linux

Introduction to Linux Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons

More information

Introduction to the UNIX command line

Introduction to the UNIX command line Introduction to the UNIX command line Steven Abreu Introduction to Computer Science (ICS) Tutorial Jacobs University s.abreu@jacobs-university.de September 19, 2017 Overview What is UNIX? UNIX Shell Commands

More information

1. What statistic did the wc -l command show? (do man wc to get the answer) A. The number of bytes B. The number of lines C. The number of words

1. What statistic did the wc -l command show? (do man wc to get the answer) A. The number of bytes B. The number of lines C. The number of words More Linux Commands 1 wc The Linux command for acquiring size statistics on a file is wc. This command provides the line count, word count and number of bytes in a file. Open up a terminal, make sure you

More information

Introduction to UNIX I: Command Line 1 / 21

Introduction to UNIX I: Command Line 1 / 21 Introduction to UNIX I: Command Line 1 / 21 UNIX Command line The UNIX Shell: command line interface Navigating Directories and Files Running applications Reminder about helpful tutorial: http://korflab.ucdavis.edu/unix_and_perl/current.html

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

A Hands-On Tutorial: RNA Sequencing Using High-Performance Computing

A Hands-On Tutorial: RNA Sequencing Using High-Performance Computing A Hands-On Tutorial: RNA Sequencing Using Computing February 11th and 12th, 2016 1st session (Thursday) Preliminaries: Linux, HPC, command line interface Using HPC: modules, queuing system Presented by:

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Introduction to UNIX Stephen Pauwels University of Antwerp October 2, 2015 Outline What is Unix? Getting started Streams Exercises UNIX Operating system Servers, desktops,

More information

commandname flags arguments

commandname flags arguments Unix Review, additional Unix commands CS101, Mock Introduction This handout/lecture reviews some basic UNIX commands that you should know how to use. A more detailed description of this and other commands

More information

Exercise Sheet 2. (Classifications of Operating Systems)

Exercise Sheet 2. (Classifications of Operating Systems) Exercise Sheet 2 Exercise 1 (Classifications of Operating Systems) 1. At any given moment, only a single program can be executed. What is the technical term for this operation mode? 2. What are half multi-user

More information

Lecture # 2 Introduction to UNIX (Part 2)

Lecture # 2 Introduction to UNIX (Part 2) CS390 UNIX Programming Spring 2009 Page 1 Lecture # 2 Introduction to UNIX (Part 2) UNIX is case sensitive (lowercase, lowercase, lowercase) Logging in (Terminal Method) Two basic techniques: 1. Network

More information

Open up a terminal, make sure you are in your home directory, and run the command.

Open up a terminal, make sure you are in your home directory, and run the command. More Linux Commands 0.1 wc The Linux command for acquiring size statistics on a file is wc. This command can provide information from line count, to bytes in a file. Open up a terminal, make sure you are

More information

Getting Started With UNIX Lab Exercises

Getting Started With UNIX Lab Exercises Getting Started With UNIX Lab Exercises This is the lab exercise handout for the Getting Started with UNIX tutorial. The exercises provide hands-on experience with the topics discussed in the tutorial.

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

Outline. Structure of a UNIX command

Outline. Structure of a UNIX command Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory

More information

Data Management at ARSC

Data Management at ARSC Data Management at ARSC David Newman (From slides by Tom Logan) (from Slides from Don Bahls) Presentation Overview 1. ARSC storage 2. Data Management within ARSC 3. Additional Notes on Long Term Storage

More information

MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit

MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit Jurij Ivastsuk-Kienbaum jurij [at] device-image.de Revision History First draft March 14, 2006 This document describes a setup

More information

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: Linux Tutorial How to read the examples When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: $ application file.txt

More information

Systems Programming and Computer Architecture ( ) Exercise Session 01 Data Lab

Systems Programming and Computer Architecture ( ) Exercise Session 01 Data Lab Systems Programming and Computer Architecture (252-0061-00) Exercise Session 01 Data Lab 1 Goal Get familiar with bit level representations, C and Linux Thursday, September 22, 2016 Systems Programming

More information

UNIX Quick Reference

UNIX Quick Reference UNIX Quick Reference Charles Duan FAS Computer Services August 26, 2002 1 Command Reference Many of these commands have many more options than the ones displayed here. Most also take the option h or help,

More information

UNIX Tutorial Two

UNIX Tutorial Two 2.1 Copying Files cp (copy) UNIX Tutorial Two cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2 What we are going to do now, is to take a file

More information

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program Using UNIX. UNIX is mainly a command line interface. This means that you write the commands you want executed. In the beginning that will seem inferior to windows point-and-click, but in the long run the

More information

Command Line Interface The basics

Command Line Interface The basics Command Line Interface The basics Marco Berghoff, SCC, KIT Steinbuch Centre for Computing (SCC) Funding: www.bwhpc-c5.de Motivation In the Beginning was the Command Line by Neal Stephenson In contrast

More information

Computer Systems and Architecture

Computer Systems and Architecture Computer Systems and Architecture Stephen Pauwels Computer Systems Academic Year 2018-2019 Overview of the Semester UNIX Introductie Regular Expressions Scripting Data Representation Integers, Fixed point,

More information

This is Lab Worksheet 3 - not an Assignment

This is Lab Worksheet 3 - not an Assignment This is Lab Worksheet 3 - not an Assignment This Lab Worksheet contains some practical examples that will prepare you to complete your Assignments. You do not have to hand in this Lab Worksheet. Make sure

More information

MTU Computer Structure

MTU Computer Structure 1 MTU Computer Structure Home directory: h drive Same for Suns & PC s Location to store files Organize files by creating appropriate directories (folders) Subdirectory - any directory within in another

More information

Introduction to Linux Workshop 1

Introduction to Linux Workshop 1 Introduction to Linux Workshop 1 The George Washington University SEAS Computing Facility Created by Jason Hurlburt, Hadi Mohammadi, Marco Suarez hurlburj@gwu.edu Logging In The lab computers will authenticate

More information

Introduction: What is Unix?

Introduction: What is Unix? Introduction Introduction: What is Unix? An operating system Developed at AT&T Bell Labs in the 1960 s Command Line Interpreter GUIs (Window systems) are now available Introduction: Unix vs. Linux Unix

More information

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester Linux Essentials Programming and Data Structures Lab M Tech CS First Year, First Semester Adapted from PDS Lab 2014 and 2015 Login, Logout, Password $ ssh mtc16xx@192.168.---.--- $ ssh X mtc16xx@192.168.---.---

More information

Arkansas High Performance Computing Center at the University of Arkansas

Arkansas High Performance Computing Center at the University of Arkansas Arkansas High Performance Computing Center at the University of Arkansas AHPCC Workshop Series Introduction to Linux for HPC Why Linux? Compatible with many architectures OS of choice for large scale computing

More information

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Warnings 1 First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion. Read the relevant material in Sobell! If

More information

: the User (owner) for this file (your cruzid, when you do it) Position: directory flag. read Group.

: the User (owner) for this file (your cruzid, when you do it) Position: directory flag. read Group. CMPS 12L Introduction to Programming Lab Assignment 2 We have three goals in this assignment: to learn about file permissions in Unix, to get a basic introduction to the Andrew File System and it s directory

More information

Linux File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

More information

Common UNIX Commands. Unix. User Interfaces. Unix Commands Winter COMP 1270 Computer Usage II 9-1. Using UNIX. Unix has a command line interface

Common UNIX Commands. Unix. User Interfaces. Unix Commands Winter COMP 1270 Computer Usage II 9-1. Using UNIX. Unix has a command line interface Common UNIX Commands Using UNIX Unix Unix has a command line interface Unix commands must be typed Similar to the DOS operating system for PC s Compare to the Graphical User Interface (GUI) used by Windows,

More information

Chap2: Operating-System Structures

Chap2: Operating-System Structures Chap2: Operating-System Structures Objectives: services OS provides to users, processes, and other systems structuring an operating system how operating systems are designed and customized and how they

More information

Week 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands

Week 2. Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands Week 2 Exp 2 (a) (b): Introduction to LINUX OS, Installation of LINUX OS, Basic DOS commands mkdir, cd, cls, del, copy, attrib, date, path, type, format, exit. Basic commands in LINUX - cat, ls, pwd,,

More information

Operating systems fundamentals - B10

Operating systems fundamentals - B10 Operating systems fundamentals - B10 David Kendall Northumbria University David Kendall (Northumbria University) Operating systems fundamentals - B10 1 / 12 Introduction Basics of protection and security

More information

SECTION -C. Getting Started with UNIX

SECTION -C. Getting Started with UNIX Lecture 15 SECTION -C Getting Started with UNIX Introduction Changing permission modes Absolute & Relative Permissions Changing file permissions : chmod A file or directory is created with a default set

More information

Self-test Linux/UNIX fundamentals

Self-test Linux/UNIX fundamentals Self-test Linux/UNIX fundamentals Document: e0829test.fm 16 January 2018 ABIS Training & Consulting Diestsevest 32 / 4b B-3000 Leuven Belgium TRAINING & CONSULTING INTRODUCTION TO THE SELF-TEST LINUX/UNIX

More information

Unix Introduction to UNIX

Unix Introduction to UNIX Unix Introduction to UNIX Get Started Introduction The UNIX operating system Set of programs that act as a link between the computer and the user. Developed in 1969 by a group of AT&T employees Various

More information

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2 Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades 2017-2018 Q2 Facultat d Informàtica de Barcelona This first lab session is focused on getting experience in working

More information

The Unix Shell. Permissions

The Unix Shell. Permissions The Unix Shell Copyright Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See http://software-carpentry.org/license.html for more information. shell shell pwd,

More information

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing Quick Start Guide by Burak Himmetoglu Supercomputing Consultant Enterprise Technology Services & Center for Scientific Computing E-mail: bhimmetoglu@ucsb.edu Linux/Unix basic commands Basic command structure:

More information

In this exercise you will practice working with HDFS, the Hadoop. You will use the HDFS command line tool and the Hue File Browser

In this exercise you will practice working with HDFS, the Hadoop. You will use the HDFS command line tool and the Hue File Browser Access HDFS with Command Line and Hue Data Files (local): ~/labs/data/kb/* ~/labs/data/base_stations.tsv In this exercise you will practice working with HDFS, the Hadoop Distributed File System. You will

More information

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions Lanka Education and Research Network Linux Architecture, Linux File System, Linux Basic Commands 28 th November 2016 Dilum Samarasinhe () Overview History of Linux Linux Architecture Linux File System

More information

Basic Linux Commands. Srihari Kalgi M.Tech, CSE (KReSIT), IIT Bombay. May 5, 2009

Basic Linux Commands. Srihari Kalgi M.Tech, CSE (KReSIT), IIT Bombay. May 5, 2009 Basic Linux Commands Srihari Kalgi M.Tech, CSE (KReSIT), IIT Bombay May 5, 2009 General Purpose utilities Linux File System File Handling Commands Compressing and Archiving Files Simple Filters General

More information

. Fill in the Blank: A directory named mydir has just been... Points:10. Add Question Success: 64 questions added as a copy.

. Fill in the Blank: A directory named mydir has just been... Points:10. Add Question Success: 64 questions added as a copy. . Fill in the Blank: A directory named mydir has just been... Success: 64 questions added as a copy. A directory named mydir has just been created with the touch command. Nochmod commands have been issued

More information

Oxford University Computing Services. Getting Started with Unix

Oxford University Computing Services. Getting Started with Unix Oxford University Computing Services Getting Started with Unix Unix c3.1/2 Typographical Conventions Listed below are the typographical conventions used in this guide. Names of keys on the keyboard are

More information

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

Welcome to Linux. Lecture 1.1

Welcome to Linux. Lecture 1.1 Welcome to Linux Lecture 1.1 Some history 1969 - the Unix operating system by Ken Thompson and Dennis Ritchie Unix became widely adopted by academics and businesses 1977 - the Berkeley Software Distribution

More information

File systems: management 1

File systems: management 1 File systems: management 1 Disk quotas for users Quotas for keeping track of each user s disk use Soft limit and hard limit 2 Backup 3 File System Backup Replacing hardware is easy, but not the data Backups

More information

CISC 220 fall 2011, set 1: Linux basics

CISC 220 fall 2011, set 1: Linux basics CISC 220: System-Level Programming instructor: Margaret Lamb e-mail: malamb@cs.queensu.ca office: Goodwin 554 office phone: 533-6059 (internal extension 36059) office hours: Tues/Wed/Thurs 2-3 (this week

More information

Unix Filesystem. January 26 th, 2004 Class Meeting 2

Unix Filesystem. January 26 th, 2004 Class Meeting 2 Unix Filesystem January 26 th, 2004 Class Meeting 2 * Notes adapted by Christian Allgood from previous work by other members of the CS faculty at Virginia Tech Unix Filesystem! The filesystem is your interface

More information

System Programming. Introduction to Unix

System Programming. Introduction to Unix Content : by Dr. B. Boufama School of Computer Science University of Windsor Instructor: Dr. A. Habed adlane@cs.uwindsor.ca http://cs.uwindsor.ca/ adlane/60-256 Content Content 1 Introduction 2 3 Introduction

More information

Lab Working with Linux Command Line

Lab Working with Linux Command Line Introduction In this lab, you will use the Linux command line to manage files and folders and perform some basic administrative tasks. Recommended Equipment A computer with a Linux OS, either installed

More information

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories Chapter Two Exploring the UNIX File System and File Security Lesson A Understanding Files and Directories 2 Objectives Discuss and explain the UNIX file system Define a UNIX file system partition Use the

More information

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview

More information

Introduction Into Linux Lecture 1 Johannes Werner WS 2017

Introduction Into Linux Lecture 1 Johannes Werner WS 2017 Introduction Into Linux Lecture 1 Johannes Werner WS 2017 Table of contents Introduction Operating systems Command line Programming Take home messages Introduction Lecturers Johannes Werner (j.werner@dkfz-heidelberg.de)

More information

KB How to upload large files to a JTAC Case

KB How to upload large files to a JTAC Case KB23337 - How to upload large files to a JTAC Case SUMMARY: This article explains how to attach/upload files larger than 10GB to a JTAC case. It also and describes what files can be attached/uploaded to

More information

IMPORTANT: Logging Off LOGGING IN

IMPORTANT: Logging Off LOGGING IN These are a few basic Unix commands compiled from Unix web sites, and printed materials. The main purpose is to help a beginner to go around with fewer difficulties. Therefore, I will be adding to this

More information

CS246 Spring14 Programming Paradigm Notes on Linux

CS246 Spring14 Programming Paradigm Notes on Linux 1 Unix History 1965: Researchers from Bell Labs and other organizations begin work on Multics, a state-of-the-art interactive, multi-user operating system. 1969: Bell Labs researchers, losing hope for

More information

Aliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login.

Aliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login. Page 1 and 2: question without commands. Page 3 7 : questions with answers. Aliases are set manually or in a login script. Aliases that were set manually will be gone the next time you login. 1. List your

More information

2 Lab 4. Unix Shell 2

2 Lab 4. Unix Shell 2 4 Unix Shell 2 Lab Objective: Introduce system management, calling Unix Shell commands within Python, and other advanced topics. As in the last lab, the majority of learning will not be had in finishing

More information

Lab 1: Introduction to Linux Networking

Lab 1: Introduction to Linux Networking CMPE 150: Introduction to Computer Networks Fall 2011 http://courses.soe.ucsc.edu/courses/cmpe150/fall11/01/ Lab 1: Introduction to Linux Networking Materials: Please bring a USB drive to each lab section.

More information

Introduction to Lab Practicals (Lab Intro 3) Access Control, Synchronisation and Remote Access

Introduction to Lab Practicals (Lab Intro 3) Access Control, Synchronisation and Remote Access Introduction to Lab Practicals (Lab Intro 3) Access Control, Synchronisation and Remote Access 1 Introduction This practical is intended to familiarise you with the file access control mechanisms of Linux

More information

Exercise 1: Basic Tools

Exercise 1: Basic Tools Exercise 1: Basic Tools This exercise is created so everybody can learn the basic tools we will use during this course. It is really more like a tutorial than an exercise and, you are not required to submit

More information