Getting Help From Terminal
Topic :- Getting Help From Terminal
Aim
the actual aim of this topic to user are familiar with Linux terminal and easy to use it given help from system. so in this topic we have learn how to get help from different way in Linux system.Topics
- Getting Help From -h or --help Command.
- Getting Help From man Command.
1. Getting Help from -h / --help command
the Linux system are mainly used from terminal and the user are hard to remember any command and the option of commands. the any command need to run and given out put from command, we have need to three things.
- Command to run.
- Options to adjust behavior of Command.
- Arguments, which are typically target of the command
first we have write command and then we write the --help or -h option in front of command then it generate the output of given command in help show Abstract level details of any command.
Example 1 :-
root@batman:~# mkdir --help Usage: mkdir [OPTION]... DIRECTORY... Create the DIRECTORY(ies), if they do not already exist. Mandatory arguments to long options are mandatory for short options too. -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error if existing, make parent directories as needed -v, --verbose print a message for each created directory -Z set SELinux security context of each created directory to the default type --context[=CTX] like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX --help display this help and exit --version output version information and exit GNU coreutils online help: <https://www.gnu.org/software/coreutils/> Full documentation at: <https://www.gnu.org/software/coreutils/mkdir> or available locally via: info '(coreutils) mkdir invocation' root@batman:~#
Example 2 :-
root@batman:~# fdisk -h Usage: fdisk [options] <disk> change partition table fdisk [options] -l [<disk>] list partition table(s) Display or manipulate a disk partition table. Options: -b, --sector-size <size> physical and logical sector size -B, --protect-boot don't erase bootbits when creating a new label -c, --compatibility[=<mode>] mode is 'dos' or 'nondos' (default) -L, --color[=<when>] colorize output (auto, always or never) colors are enabled by default -l, --list display partitions and exit -o, --output <list> output columns -t, --type <type> recognize specified partition table type only -u, --units[=<unit>] display units: 'cylinders' or 'sectors' (default) -s, --getsz display device size in 512-byte sectors [DEPRECATED] --bytes print SIZE in bytes rather than in human readable format -w, --wipe <mode> wipe signatures (auto, always or never) -W, --wipe-partitions <mode> wipe signatures from new partitions (auto, always or never) -C, --cylinders <number> specify the number of cylinders -H, --heads <number> specify the number of heads -S, --sectors <number> specify the number of sectors per track -h, --help display this help -V, --version display version Available output columns: gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize sgi: Device Start End Sectors Cylinders Size Type Id Attrs sun: Device Start End Sectors Cylinders Size Type Id Flags For more details see fdisk(8). root@batman:~#
2. Getting help from man command
the -h or --h command is sufficient to getting help of command but the Linux beginner are need to help in the deep about any command to use man command before the actual command. the output of this command is generated in the vim or other text editor. and it is available in the text file format.Example :-
root@batman:~# man fdisk
The output is generated in vim editor or may be any text editor. the information is given by man is very deep or fulfill knowledge about the given command.
Disclaimer :-
The above information is published by the codeworld19 authority using help of Linux terminal documentation if any query regarding this page or other issue regarding this website contact the codeworld19 authority to fill the following contact form, Thank you.