View on GitHub

Computational Techniques for Life Sciences

Part of the TACC Institute Series, Immersive Training in Advanced Computation

What information is known about the files?

meta-data

Example

$ mkdir test
$ cd test
$ touch bob
$ ln bob robert
$ ln -s bob bobby
$ ls -li
total 44
144170437511753087 -rw------- 2 beckbw G-814141    0 Jun  6 07:07 bob
144170437511753088 lrwxrwxrwx 1 beckbw G-814141    3 Jun  6 07:07 bobby -> bob
144170437511753087 -rw------- 2 beckbw G-814141    0 Jun  6 07:07 robert


$ stat bob robert bobby
$ stat *ob*
  File: `bob'
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: dab3078h/229322872d	Inode: 144170437511753087  Links: 2
Access: (0600/-rw-------)  Uid: (827624/  beckbw)   Gid: (814141/G-814141)
Access: 2017-06-06 07:07:31.000000000 -0500
Modify: 2017-06-06 07:07:31.000000000 -0500
Change: 2017-06-06 07:07:40.000000000 -0500
 Birth: -
  File: `bobby' -> `bob'
  Size: 3         	Blocks: 0          IO Block: 4096   symbolic link
Device: dab3078h/229322872d	Inode: 144170437511753088  Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (827624/  beckbw)   Gid: (814141/G-814141)
Access: 2017-06-06 07:07:46.000000000 -0500
Modify: 2017-06-06 07:07:46.000000000 -0500
Change: 2017-06-06 07:07:46.000000000 -0500
 Birth: -
  File: `robert'
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: dab3078h/229322872d	Inode: 144170437511753087  Links: 2
Access: (0600/-rw-------)  Uid: (827624/  beckbw)   Gid: (814141/G-814141)
Access: 2017-06-06 07:07:31.000000000 -0500
Modify: 2017-06-06 07:07:31.000000000 -0500
Change: 2017-06-06 07:07:40.000000000 -0500
 Birth: -

$ ls -tl *ob*
lrwxrwxrwx 1 beckbw G-814141 3 Jun  6 07:07 bobby -> bob
-rw------- 2 beckbw G-814141 0 Jun  6 07:07 bob
-rw------- 2 beckbw G-814141 0 Jun  6 07:07 robert


$ find -mtime <days>
$ find -mtime 1
$
$ fine -mtime 0
./robert
./bob
./bobby

What about file size?

First, Create some files to play with

$cd test (if not already there)

$ for i in $(seq 0 10) ; do mkdir research_$i ; cd research_$i ; for j in $(seq 0 10) ; do touch  data_${i}_${j}; done; cd - ; done
$ tree
.
|-- bob
|-- bobby -> bob
|-- research_0
|   |-- data_0_0
|   |-- data_0_1
|   |-- data_0_10
|   |-- data_0_2
|   |-- data_0_3
|   |-- data_0_5
|   |-- data_0_7
|   |-- data_0_8
|   `-- data_0_9
|-- research_1
|   |-- data_1_0
|   |-- data_1_1
...

Example2: du disk Usage

$ du
4	./research_10
4	./research_7
4	./research_5
4	./research_0
4	./research_4
4	./research_9
27652	./research_6
4	./research_2
4	./research_8
4	./research_1
4	./research_3
27696	.

Can I see how much of this disk is being used?

$ df /home1
Filesystem                                                1K-blocks          Used      Available Use% Mounted on
129.114.54.5:/home1                                     13458257920    2000674816    10773943296  16% /home1

Quota : artificial limit place on you disk usage