-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathman_1_simple_shell
More file actions
62 lines (53 loc) · 1.28 KB
/
man_1_simple_shell
File metadata and controls
62 lines (53 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.TH SIMPLE SHELL
.SH NAME
.B Simple Shell
simple_shell - command interpreter
.SH SYNOPSIS
"#include shell.h"
TP.
.B ./simple_shell
.SH DESCRIPTION
The simple shell is the standard command interpreter for the system. It is a command that reads lines from either a file or the terminal, interprets them, and generally executes other commands.
.TP
.B Builtins
This section lists the builtin commands which are builtin because they need to perform some operation that can't be performed by a separate process.
.TP
.BR exit [exitstatus]
Terminate the shell process.
.SH RETURN VALUE
This function has no return value.
.SH EXAMPLE
Print the list of files and directories
.PP
.nf
.RS
root@user:/holbertonschool-simple_shell# ./simple_shell
😈 /bin/ls
AUTHORS exec_cmd.c functions_str.c man_1_simple_shell read_line.c shell.h
split_string.c environ.c _exit.c main.c path.c README.md simple_shell
.RE
.fi
.PP
Print the path of the directory
.PP
.nf
.RS
root@user:/holbertonschool-simple_shell# ./simple_shell
😈 /bin/pwd
/holbertonschool-simple_shell
.RE
.fi
.PP
Exit the shell
.PP
.nf
.RS
root@user:/holbertonschool-simple_shell# ./simple_shell
;) exit
root@user:/holbertonschool-simple_shell#
.RE
.fi
.PP
.SH AUTHOR
Claudia Bura & Anne-Laure Guilloux
.SH Date: 2022/12/08