Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #
- #
- # export variable name and set value
- export varname=value
- # list files from older to newer
- ls - rtl
- # search for file or folder within Linux OS, case insensitive
- locate -i *filetosearch*
- # sort lines of a text file
- sort fileA.txt
- sort -r fileA.txt
- # create tar archive file
- tar -cvf archive-name.tar /home
- # extract tar archive file
- tar -xvf archive-name.tar
- # find something named tecmint
- find / -name tecmint
Add Comment
Please, Sign In to add comment