rm
(rm * - remove all files in the folder)
(-f - force deletion)
find a file in a folder including sub-folders by it's name:
find -name FILENAME
find a file in a folder including sub-folders by part of it's name:
find -name FILEN*
view text of a file
more FILENAME
- Exit by pressing q key
edit a file
vi FILENAME
- To save a file: press Esc key, type :w, Enter
- To save a file and quit: press Esc key, type :x, Enter
grant privilege to a user
chown -R USERNAME: FOLDERNAME
(-R - to recursively operate on all files and directories under the given directory)
No comments:
Post a Comment