Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE GLOBBING IN LINUX
- ======================
- # echo * ==> prints everything available
- # echo M* ==> displays files starting the character
- # echo M*e* ==> it does not only start with 'M' but also contains 'n'.
- # touch ==> create a file
- # cat ==> displays the info inside a file
- # cat > 'filename' ==> will create a file along with the content.
- FILE MANIPULATION
- =================
- # mv - 1. To rename ==> # mv Hey HeyMo
- # mv (old name) (new name)
- 2. To move ==> # mv (/etc/usr) (/home/Desktop)
- # mv (move from) ( moveto)
- # ls ==> list
- # ls -a or -A or -la ==> shows hidden files
- # ls -ld ==> will show directory itself
- # ls -l /path/ ==> display files from a path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement