Advertisement
ffilz

create, link, unlink

Jul 12th, 2016
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. [root@localhost cthon04]# mkdir /mntc/cthon04
  2. [root@localhost cthon04]# echo foo >/mntc/cthon04/foo
  3. [root@localhost cthon04]# stat /mntc/cthon04/foo
  4. File: ‘/mntc/cthon04/foo’
  5. Size: 4 Blocks: 1 IO Block: 1048576 regular file
  6. Device: 2fh/47d Inode: 1099511629290 Links: 1
  7. Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
  8. Context: system_u:object_r:nfs_t:s0
  9. Access: 2016-07-12 11:04:12.748831285 -0700
  10. Modify: 2016-07-12 11:04:12.880079960 -0700
  11. Change: 2016-07-12 11:04:12.880079960 -0700
  12. Birth: -
  13. [root@localhost cthon04]# ln /mntc/cthon04/foo /mntc/cthon04/foo1
  14. [root@localhost cthon04]# stat /mntc/cthon04/foo1
  15. File: ‘/mntc/cthon04/foo1’
  16. Size: 4 Blocks: 1 IO Block: 1048576 regular file
  17. Device: 2fh/47d Inode: 1099511629290 Links: 2
  18. Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
  19. Context: system_u:object_r:nfs_t:s0
  20. Access: 2016-07-12 11:04:12.748831285 -0700
  21. Modify: 2016-07-12 11:04:12.880079960 -0700
  22. Change: 2016-07-12 11:04:27.809478073 -0700
  23. Birth: -
  24. [root@localhost cthon04]# rm /mntc/cthon04/foo1
  25. rm: remove regular file ‘/mntc/cthon04/foo1’? y
  26. [root@localhost cthon04]# stat /mntc/cthon04/foo
  27. File: ‘/mntc/cthon04/foo’
  28. Size: 4 Blocks: 1 IO Block: 1048576 regular file
  29. Device: 2fh/47d Inode: 1099511629290 Links: 2
  30. Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
  31. Context: system_u:object_r:nfs_t:s0
  32. Access: 2016-07-12 11:04:12.748831285 -0700
  33. Modify: 2016-07-12 11:04:12.880079960 -0700
  34. Change: 2016-07-12 11:04:27.809478073 -0700
  35. Birth: -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement