Tag: Commands

tail [Command]

tail [Command]

Command tail Displays the last few lines of the file. Syntax tail file Options -N (where N – number) displays the last N lines. -n N (where N – number) displays the last N …
rmdir [Command]

rmdir [Command]

Command rmdir Deletes the specified directory (if it is empty). Syntax rmdir directory Options -p: remove all parent directories which become empty. -i: stands for interactively -r: stands for recursively -f: stands for forcefully …
Linux, Unix, cli, Command,

rm [Command]

Command rm Removes one or more files. Syntax rm files Options -f deletes files without asking. -i asks for confirmation before deleting files. -r recursively deletes files in all subdirectories contained in the catalog. …
pwd [Command]

pwd [Command]

Command pwd Prints the current working directory. Syntax pwd Description The command pwd prints the current working directory. It is a built-in command of Bash.
Linux, Unix, cli, Command,

mv [Command]

Command mv Renames files and directories or move them from one directory to another. Syntax mv source destination Options -b creates backup copies of files that are moved or renamed. -f remove existing files …
Linux, Unix, cli, Command,

mkdir [Command]

Command mkdir Creates a directory. Syntax mkdir directory_names Options -m access appoints new directory specified access rights. -p creates parent directories if they do not exist. Description The mkdir command creates the specified directory. …
Linux, Unix, cli, Command,

ln [Command]

Command ln Sets hard or symbolic links (aliases) for files and directories. Syntax ln existing_file new_name Options -b backs up files before deleting them. -d creates a hard link to a directory (this can …
Linux, Unix, cli, Command,

ls [Command]

Command ls Prints the contents of the directory. Syntax ls Options -a displays all files, including those with names starting with a dot (.). -b displays unprintable characters in file names in octal. …
Linux, Unix, cli, Command,

more [Command]

Command more more – Performs view text files. Syntax more file_names Options +N (where N – number) displays the file, starting at the specified line number. +/pattern begins with a display of two rows …
Linux, Unix, cli, Command,

less [Command]

Command less less – command displays text files (with the possibility of searching through back). Syntax less file_name Options -? displays a list of commands that can use less. -p displays the text of …