Changes between Version 25 and Version 26 of cypress/BasicLinuxComands
- Timestamp:
- 08/09/19 13:34:20 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/BasicLinuxComands
v25 v26 28 28 29 29 {{{ 30 [tulaneID@cypress1 ~]$ cd workshop 31 [tulaneID@cypress1 workshop]$ pwd 30 [tulaneID@cypress1 ~]$ cd hpc-workshop 31 [tulaneID@cypress1 hpc-workshop]$ pwd 32 /home/tulaneID/hpc-workshop 33 [tulaneID@cypress1 hpc-workshop]$ 34 }}} 35 36 As you can see, workshop is a ''subdirectory'' of tulaneID. And tulaneID is itself a subdirectory of home, which is a subdirectory of the root directory (/). Thus, the directories form a downward facing tree with all directories stemming from the root directory. You can move one level up in the tree by typing '''cd ..'' 37 38 {{{ 39 [tulaneID@cypress1 hpc-workshop]$ pwd 32 40 /home/tulaneID/workshop 33 [tulaneID@cypress1 workshop]$ 34 }}} 35 36 As you can see, workshop is a ''subdirectory'' of tulaneID. And tulaneID is itself a subdirectory of home, which is a subdirectory of the root directory (/). Thus, the directories form a downward facing tree with all directories stemming from the root directory. You can move one level up in the tree by typing '''cd ..'' 37 38 {{{ 39 [tulaneID@cypress1 workshop]$ pwd 40 /home/tulaneID/workshop 41 [tulaneID@cypress1 workshop]$ cd .. 41 [tulaneID@cypress1 hpc-workshop]$ cd .. 42 42 [tulaneID@cypress1 ~]$ pwd 43 43 /home/tulaneID … … 50 50 [tulaneID@cypress1 ~]$ pwd 51 51 /home 52 [tulaneID@cypress1 ~]$ cd tulaneID/ workshop53 [tulaneID@cypress1 workshop]$ pwd54 /home/tulaneID/ workshop52 [tulaneID@cypress1 ~]$ cd tulaneID/hpc-workshop 53 [tulaneID@cypress1 hpc-workshop]$ pwd 54 /home/tulaneID/hpc-workshop 55 55 [tulaneID@cypress1 ~]$ cd /home 56 56 [tulaneID@cypress1 ~]$ pwd … … 78 78 If you would like to see if a directory contains a specific file, you can pass the directory path and file name to '''ls''' as an argument 79 79 {{{ 80 [tulaneID@cypress1 ~]$ ls workshop80 [tulaneID@cypress1 ~]$ ls hpc-workshop 81 81 BlasLapack Eigen3 HeatMass JobArray1 JobDependencies MPI PETSc precision Python ScaLapack SimpleExample TestCodes VTK 82 82 CUDA FlowInCavity hybridTest JobArray2 Matlab OpenMP PI PSE R SerialJob SLU40 uBLAS … … 86 86 Setting the ''-l'' flag will display files along with their permissions and ownership. 87 87 {{{ 88 [tulaneID@cypress1 ~]$ ls -l workshop88 [tulaneID@cypress1 ~]$ ls -l hpc-workshop 89 89 total 100 90 90 drwxr-xr-x 3 fuji hpcstaff 4096 Aug 21 13:06 BlasLapack … … 131 131 Remove files and directories. CAUTION: THERE IS NO UNDOING THIS COMMAND. 132 132 {{{ 133 [tulaneID@cypress1 ~]$ rm workshop133 [tulaneID@cypress1 ~]$ rm hpc-workshop 134 134 }}} 135 135 If you would like to remove a directory and all of its contents use the following command: 136 136 {{{ 137 [tulaneID@cypress1 ~]$ rm -ri workshop138 rm: descend into directory ` workshop'? y139 rm: descend into directory ` workshop/PI'? n140 rm: descend into directory ` workshop/uBLAS'? ^C137 [tulaneID@cypress1 ~]$ rm -ri hpc-workshop 138 rm: descend into directory `hpc-workshop'? y 139 rm: descend into directory `hpc-workshop/PI'? n 140 rm: descend into directory `hpc-workshop/uBLAS'? ^C 141 141 [tulaneID@cypress1 ~]$ 142 142 }}} … … 147 147 If you are confident with the command line and your understanding of file locations you can use the ''f'' flag instead of ''i'' to force deletion of all files without prompting: 148 148 {{{ 149 [tulaneID@cypress1 ~]$ rm -rf workshop150 [tulaneID@cypress1 ~]$ ls workshop149 [tulaneID@cypress1 ~]$ rm -rf hpc-workshop 150 [tulaneID@cypress1 ~]$ ls hpc-workshop 151 151 ls: cannot access workshop: No such file or directory 152 152 [tulaneID@cypress1 ~]$ … … 155 155 Do this again to download sample files: 156 156 157 {{{ svn co file:///home/fuji/repos/workshop ./workshop}}}157 {{{git clone https://hidekiCCS@bitbucket.org/hidekiCCS/hpc-workshop.git}}} 158 158 159 159 == rmdir ==