Guest User

Untitled

a guest
May 26th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. #
  3. #
  4. # export variable name and set value
  5. export varname=value
  6.  
  7. # list files from older to newer
  8. ls - rtl
  9.  
  10. # search for file or folder within Linux OS, case insensitive
  11. locate -i *filetosearch*
  12.  
  13. # sort lines of a text file
  14. sort fileA.txt
  15. sort -r fileA.txt
  16.  
  17. # create tar archive file
  18. tar -cvf archive-name.tar /home
  19.  
  20. # extract tar archive file
  21. tar -xvf archive-name.tar
  22.  
  23. # find something named tecmint
  24. find / -name tecmint
Add Comment
Please, Sign In to add comment