Wednesday, 28 August 2013

Demonstrate how and when can you use the commands: vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm

Vi:
The vi command is actually a text editor that comes as standard with most Linux packages.

Cat
This command displays the contents of target-file(s) on the screen, one after the other. You can also use it to create files from keyboard input as follows (> is the output redirection operator).

chmod
This command is used to change the mode for files

Pwd:
This command displays the full absolute path to the your current location in the filesystem.

Man:
Man is the online UNIX user manual, and it can be used to get help with commands and find out about what options are supported. It has quite a terse style which is often not that helpful, so some users prefer to use the info utility if is installed.

Mkdir:
This command created a subdirectory called directory in the current working directory. You can only create subdirectories in a directory if you have write permission on that directory.

Rm (remove/delete)
This command removes the specified files. Unlike other operating system, it is almost impossible to recover a deleted files unless you have a backup. So use this command with care.

1 comment:

  1. Thanks for writing to us. You can subscribe to my youtube channel channel for latest tech videos:
    https://www.youtube.com/channel/UCnRCUB8utEFY0xqm7L92yZg

    ReplyDelete