Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Shell

Execute

Make command: make

Commands Implemented:-

(追記) cd (追記ここまで)

cd is used to change the current working directory to a specified folder.

Flags Implemented :-

  • (追記) -P (追記ここまで)
    This flag uses physical directory structure without following symbolic links.
  • (追記) -e (追記ここまで)
    When this flag is used, if the -P option is supplied, and the current working directory cannot be determined successfully, exit with a non-zero status.

Usage :-

To use relative or absolute paths, the command is used as it is with the flags required as cd [-P [-e]] path . You can also go directly to the shell home using the command as cd [-P [-e]]. The path can also be relative to shell home using the ~ prefix.

(追記) echo (追記ここまで)

Displays a line of text on the terminal.

Flags Implemented :-

  • (追記) -n (追記ここまで)
    This flag doesn’t append a new line.
  • (追記) -e (追記ここまで)
    This flag enables interpretation of backslash escapes.

Usage :-

The command can be called as echo [-e] [-n] text .

(追記) history (追記ここまで)

Maintains a history of all the commands used across all the sessions of the shell.

Flags Implemented :-

  • (追記) -c (追記ここまで)
    This flag clears the history list by deleting all of the entries.
  • (追記) -d (追記ここまで)
    This flag deletes the history entry at position OFFSET. Negative offsets count back from the end of the history list.

Usage :-

To view the entire history, use command history. To view the last OFFSET commands, use history OFFSET. To delete the command at OFFSET, use history -d OFFSET. To clear the entire history, use history -c.

(追記) pwd (追記ここまで)

This command gives the present working directory of the shell.

Flags Implemented :-

  • (追記) -L (追記ここまで)
    This flag uses PWD from the environment, even if it contains symlinks.
  • (追記) -P (追記ここまで)
    This flag avoids all symlinks.

Usage :-

To use this command, simply run it as pwd [-P] [-L].

(追記) exit (追記ここまで)

This command exits the user from the shell.

Usage :-

Use as exit.

(追記) date (追記ここまで)

Using this command, the user can print the system date and time.

Flags Implemented :-

  • (追記) -u (追記ここまで)
    Prints the coordinated universal time (UTC).
  • (追記) -R (追記ここまで)
    Outputs date and time in RFC 5322 format.

Usage :-

The command can be called as date [-u] [-R].

(追記) cat (追記ここまで)

This command concatenates file and prints on the standard output.

Flags Implemented :-

  • (追記) -E (追記ここまで)
    This flag displays $ at end of each line.
  • (追記) -n (追記ここまで)
    This flag numbers all output lines.

Usage :-

The command can be called as cat [-E] [-n] file1 file2 ... to concatenate files in those order.

(追記) ls (追記ここまで)

This command is used to list directory contents.

Flags Implemented :-

  • (追記) -a (追記ここまで)
    Using this flag, the command does not ignore entries starting with .
  • (追記) -A (追記ここまで)
    Using this flag, the command does not list implied . and ..

Usage :-

The command can be called as ls [-a] [-A] path1 path2 ... to list the contents of files or directory in that order.

(追記) rm (追記ここまで)

This command can be used to remove files or directories.

Flags Implemented :-

  • (追記) -i (追記ここまで)
    This flag prompts before every removal.
  • (追記) -v (追記ここまで)
    This flag explains what is being done.

Usage :-

The command can be called as rm [-i] [-v] file1 file2 ....

(追記) mkdir (追記ここまで)

Using this command, we can make directories.

Flags Implemented :-

  • (追記) -p (追記ここまで)
    This flag creates all the directories recursively.
  • (追記) -v (追記ここまで)
    This flag prints a message for each created directory

Usage :-

The command can be called as mkdir [-p] [-v] file1 file2 ....

About

Linux shell implemented in C.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /