UNIX COMMANDS







FILE COMMANDS

touch                        Create a new file.
Usage: touch <filename>

cp                               Copy files.
Usage: cp [options] <source-filename> <destination-filename>
cp [options] <source-filepath > <destination filepath>

Options: -r recursively copy directory structures.
mv                              Move or Rename files or directories.
Usage: mv [options] <old-filepath> <new-filepath>
mv [options] <old-filename> <new-filename>

Options: -i query user for confirmation.
rm                              Remove files.
Usage: rm [options] <filname>
Options: -r recursively remove directory structures.
-i query user for confirmation.

cat                              View complete file content.
cat <filename>

more                         View file contents in sections determined by the size of the terminal.
Usage: more <filename>

less                            View file contents in sections determined by the size of the
terminal.
Has more options and search features than more.
Usage: less [options] <filename>

compress                Reduces the size of the file. and adds the extension .Z
Usage: compress <filename>.

uncompress /
zcat                            Restores a compressed file.
Usage: uncompress <filename>
Usage: zcat <filename>

                                                                                                                                                 Next

No comments:

Post a Comment

Copyright © EduRAR @ www.edurar.blogspot.in