Question - Enlist some file manipulation commands in UNIX.
Answer -
These are few file manipulation commands:
- cat filename - Displays contents of the file.
- cp source destination - Copy the source file into the destination.
- mv old_name new_name - Move/rename.
- rm filename - Remove/delete filename.
- touch filename - creating/changing modification time.
- In [-s] old_name new_name - Creating a soft link on an old name.
- Is –F - Displays information about the file type.
- ls -ltr - This will display in long format sorted by modified time with oldest first.