Tag: Commands

id [Command]

id [Command]

Command id id – command displays the user ID, group ID and user groups. Syntax id Options -g prints only the group ID. -n displays the name of the group, rather than group …
Linux, Unix, cli, Command,

head [Command]

Command head head – command displays the first few lines of a file to standard output. Syntax head file Options -n nline number of displayed rows. Description Displays the first line of the file …
Linux, Unix, cli, Command,

gzip [Command]

Command gzip gzip – command compress one or more files. Syntax gzip files Options -c displays the output file to standard output and keeps the original file. -d decompresses the file (same as gunzip). …
Linux, Unix, cli, Command,

gunzip [Command]

Command gunzip gunzip – command uncompress zip-files. Syntax gunzip files Options See options for gzip. Description Team gunzip decompresses the compressed files (with extension .gz or .Z). After uncompress gunzip replaces the compressed files …
Linux, Unix, cli, Command,

grep [Command]

Command grep grep – command provides search in one or more files, lines that match the regular expression (search patterns). Syntax grep pattern files Options -N (where N-number) displays the N lines near the …
Linux, Unix, cli, Command,

find [Command]

Command find find – command displays a list of files that match a given set of criteria. Syntax find Options -depth first processing the current directory, then its subdirectories. -maxdepth n restricts the …
Linux, Unix, cli, Command,

file [Command]

Command file file – command displays the type of data file based on rules defined in the file /usr/lib/magic (known as the magicfile). Syntax file files Options -c displays formatted in a specified magic …
Linux, Unix, cli, Command,

dos2unix [Command]

Command dos2unix dos2unix command converts a text file format DOS/Mac to UNIX format. Syntax dos2unix Options -h displays help about the team. -k destination_file preserves the creation date of the original file. …
Linux, Unix, cli, Command,

diff [Command]

Command diff diff command shows the differences between two text files (or all files with the same names in two different directories). Syntax diff first_file a second_file Options -a Treat all files as text, …
chgrp [Command]

chgrp [Command]

Command chgrp chgrp command changes the owner group of one or more files. Syntax chgrp group files Options -c displays only files with modified group owner. -f suppress error messages. -v detailed reports on …