Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@host:~/tmp$ cp tmpfile{.orig,}
- user@host:~/tmp$ less tmpfile
- ### ctrl+z was pressed ###
- [1]+ Stopped less tmpfile
- user@host:~/tmp$ stat tmpfile
- File: โtmpfileโ
- Size: 3145 Blocks: 8 IO Block: 4096 regular file
- Device: fc00h/64512d Inode: 9708677 Links: 1
- Access: (0664/-rw-rw-r--) Uid: ( 1000/ pandfi) Gid: ( 1000/ pandfi)
- Access: 2014-06-26 00:01:47.421591000 +0100
- Modify: 2014-06-26 00:01:42.389591000 +0100
- Change: 2014-06-26 00:01:42.389591000 +0100
- Birth: -
- user@host:~/tmp$ rm tmpfile
- user@host:~/tmp$ lsof | grep tmpfile
- less 6143 pandfi 4r REG 252,0 3145 9708677 /home/pandfi/tmp/tmpfile (deleted)
- user@host:~/tmp$ cp /proc/6143/fd/4 tmpfile.recovered
- user@host:~/tmp$ diff tmp
- tmpfile.orig tmpfile.recovered
- user@host:~/tmp$ diff tmpfile.orig tmp
- tmpfile.orig tmpfile.recovered
- user@host:~/tmp$ diff -s tmpfile.orig tmpfile.recovered
- Files tmpfile.orig and tmpfile.recovered are identical
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement