What is Unix ?
Unix is a multi-user, multitasking operating system (OS) that provides a command-line interface for users to interact with the computer.
It was first developed in the late 1960s and early 1970s at Bell Labs by a group of computer scientists and engineers, including Ken Thompson and Dennis Ritchie.
Below is the consolidated table for unix file command:
Here is a table with a list of common Unix file management commands and their syntax and examples:
|ls||ls [options] [file or directory]||List the contents of a directory|
|cd||cd [directory]||Change the current working directory|
|cp||cp [options] source destination||Copy files or directories|
|mv||mv [options] source destination||Move or rename files or directories|
|rm||rm [options] file(s)||Remove files or directories|
|touch||touch [options] file(s)||Create a new empty file or update the modification time of an existing file|
|mkdir||mkdir [options] directory(ies)||Create a new directory|
more on file Commands:
|cat||cat [options] file(s)||Concatenate and display files|
|>||command > file||Redirect the output of a command to a file|
|more||more [options] file||Display the contents of a file one screen at a time|
|head||head [options] file(s)||Display the first N lines of a file|
|tail||tail [options] file(s)||Display the last N lines of a file|
|rm||rm [options] file(s)||Remove files|
|rm -r||rm -r [options] directory(ies)||Remove directories and their contents|
|rm -rf||rm -rf [options] directory(ies)||Remove directories and their contents, including any files that are write-protected|