Guest User

Untitled

a guest
Mar 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. > hello.txt
  2.  
  3. : > hello.txt
  4.  
  5. cat > hello.txt
  6.  
  7. cat > hello.txt
  8. Ubuntu is the
  9. best OS
  10.  
  11. cat /dev/null > hello.txt
  12.  
  13. echo "" > hello.txt
  14.  
  15. xieerqi:$ cat testFile.txt
  16. Filesystem 1K-blocks Used Available Use% Mounted on
  17. /dev/sda1 115247656 83100492 26269816 76% /
  18. none 4 0 4 0% /sys/fs/cgroup
  19. udev 2914492 4 2914488 1% /dev
  20. tmpfs 585216 1152 584064 1% /run
  21. none 5120 0 5120 0% /run/lock
  22. none 2926072 98096 2827976 4% /run/shm
  23. none 102400 76 102324 1% /run/user
  24.  
  25. xieerqi:$ cp /dev/null testFile.txt
  26.  
  27. xieerqi:$ cat testFile.txt
  28.  
  29. xieerqi:$
  30.  
  31. rm hello.txt && touch hello.txt
  32.  
  33. vi filename -c ':1,$d' -c ':wq'
Add Comment
Please, Sign In to add comment