Category: Commands

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 …
Linux, Unix, cli, Command,

cut [Command]

Command cat cat – command copy the file to standard output (screen). View the contents of a file and it is also used for creating a new file with some contents. Syntax cat files …
Linux, Unix, cli, Command,

cp [Command]

Command cp cp – command copies files and directories. Syntax cp source_file destination_file cp source_file destination_directory Options -a preserves all the attributes of a file. -b creates a backup copy before copying the …
Linux, Unix, cli, Command,

cmp [Command]

Command cmp cmp – command performs byte comparison of two files. Syntax cmp file1 file2 Options -l displays the byte number (decimal) and the differing bytes (octal) for each mismatch. -s only returns the …
Linux, Unix, cli, Command,

chown [Command]

Command chown chown – command changes the owner or group ownership of a file. Syntax chown username:groupname files Options -c displays only files with the change in ownership. -f suppress error messages. -v displays …
Linux, Unix, cli, Command,

chmod [Command]

Command chmod chmod – command changes the permissions of one or more files. Syntax chmod permissions files Options -c displays only files with changed permissions. -f suppress error messages. -v displays detailed information about …