Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type,man,help,history added #44

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,38 @@

# 1. Basic Operations

### a. `export`
### a. `type`
Displays the kind of command the shell will execute, given a particular command name.
```bash
type command
```
Example:
```bash
$ type cp
cp is /bin/cp
```
### b. `help`
It is used to get information about each of the shell builtin commands.
```bash
help command
```
Optionally, the -m option is added to change the format of the output.

Example:
```bash
$ help -m cd
```

### c. `--help`
Many executable programs support a “--help” option that displays a description of the command's supported syntax and options.
```bash
command --help
```
Example:
```bash
$ mkdir --help
```
### d. `export`
Displays all environment variables. If you want to get details of a specific variable, use `echo $VARIABLE_NAME`.
```bash
export
Expand All @@ -39,7 +70,7 @@ $ echo $AWS_HOME
/Users/adnanadnan/.aws
```

### b. `whatis`
### e. `whatis`
whatis shows description for user commands, system calls, library functions, and others in manual pages
```bash
whatis something
Expand All @@ -50,7 +81,7 @@ $ whatis bash
bash (1) - GNU Bourne-Again SHell
```

### c. `whereis`
### f. `whereis`
whereis searches for executables, source files, and manual pages using a database built by system automatically.
```bash
whereis name
Expand All @@ -61,7 +92,7 @@ $ whereis php
/usr/bin/php
```

### d. `which`
### g. `which`
which searches for executables in the directories specified by the environment variable PATH. This command will print the full path of the executable(s).
```bash
which program_name
Expand All @@ -72,7 +103,10 @@ $ which php
/c/xampp/php/php
```

### e. clear
### h. `history`
History prints previous executed commands.

### i. `clear`
Clears content on window.

## 1.1. File Operations
Expand Down Expand Up @@ -806,7 +840,7 @@ last yourUsername
```

### l. `man`
Shows the manual for specified command.
Most executable programs intended for command line use provide a formal piece of documentation called a manual or man page.
```bash
man command
```
Expand Down