Tag: Commands

touch [Command]

Command touch Changes the timestamp of file. Syntax touch [options] files Options -c prescribes not to touch the file if it does not exist. -d time, using the
Read More

tar [Command]

Command tar tar – Creates archive files or extract files from archives. Syntax tar [options] file_or_directory Options -c: creates a new archive. -d: compares the files from the
Read More

tail [Command]

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

rmdir [Command]

Command rmdir Deletes the specified directory (if it is empty). Syntax rmdir [options] directory Options -p: remove all parent directories which become empty. -i: stands for interactively -r:
Read More

rm [Command]

Command rm Removes one or more files. Syntax rm [options] files Options -f deletes files without asking. -i asks for confirmation before deleting files. -r recursively deletes files
Read More

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.
Read More

mv [Command]

Command mv Renames files and directories or move them from one directory to another. Syntax mv [options] source destination Options -b creates backup copies of files that are
Read More

mkdir [Command]

Command mkdir Creates a directory. Syntax mkdir [options] directory_names Options -m access appoints new directory specified access rights. -p creates parent directories if they do not exist. Description
Read More

ln [Command]

Command ln Sets hard or symbolic links (aliases) for files and directories. Syntax ln [options] existing_file new_name Options -b backs up files before deleting them. -d creates a
Read More

ls [Command]

Command ls Prints the contents of the directory. Syntax ls [options] [directory-names] Options -a displays all files, including those with names starting with a dot (.). -b displays
Read More