Linux Commands
linux commands
Linux rm Command – Remove Files or Directories
One of the most powerful and controversial tools of Linux is the terminal. For many people, it is quite a strange thing to use, but it is one of the most efficient tools out there. In fact, if you plan to use Linux on a home or production server, the terminal will always be your …
What is cp: omitting directory error in Linux and how to solve
Linux cp command allows you to copy files and directories. By default, it works on file only. When you try to copy a directory, you get the cp: -r not specified; omitting directory error on the terminal. Let’s reproduce the error. Copy a file from src_file.txt to /home/imaginelinux/dest_dir folder. cp src_file.txt /home/imaginelinux/dest_dir This works fine for …
What is cp: omitting directory error in Linux and how to solve Read More »
Type Command in Linux – (How to) Display Information About Command
TYPE is a Linux command which helps to identify the type of the input command if it is an alias, built-in, function, or keyword. You can also pass multiple commands as the input parameters. All the arguments to this command are optional. Type Syntax type [-afptP] name [name …] Options [afptP] –a – display all …
Type Command in Linux – (How to) Display Information About Command Read More »
Linux Sleep Command – (How to) delay for a specified amount of time
Linux sleep command adds delay/pause for a specified amount of time. As per man sleep this command, Written by Jim Meyering and Paul Eggert. Part of GNU Coreutils. License GPLv3+: GNU GPL version 3 free software, you are free to change and redistribute it. There is NO WARRANTY Sleep Syntax sleep NUMBER[smhd] sleep OPTION Options Each argument …
Linux Sleep Command – (How to) delay for a specified amount of time Read More »
WC Command in Linux – (How to) Print Character, Byte, Newline and Word Count
WC is a Linux command to print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. If there is no input file parameter or it is “-” and then it reads the input from the standard input device. WC Syntax wc [OPTION]… [FILE]… wc [OPTION]… …
WC Command in Linux – (How to) Print Character, Byte, Newline and Word Count Read More »
WHOAMI Command in Linux – Prints the Username
In Linux, the “whoami” command is a simple utility that displays the username of the currently logged-in user. It is a basic and frequently used command-line tool that provides information about the user’s identity on a Linux system. It is an abbreviation for “who am I”. The command is written by Richard Mlynarik and is …
PWD Command in Linux – (How to) Print Working Directory
PWD is a Linux command which Prints the Current Working directory. Sometimes it is referenced as the Present Working Directory in some books. Simply, the working directory is the directory in which you are currently working. Every time you open a new terminal window, it opens in your home directory by default. When you navigate …
PWD Command in Linux – (How to) Print Working Directory Read More »
mailx command in linux – send and receive mail
Mailx is an character-based, intelligent mail processing system in Linux to send and receive emails. This is based on Berkeley Mail 8.1 and provides the complete functionality of the POSIX mailx command. Extensions for MIME, IMAP, POP3, SMTP, and S/MIME are also available. Features of mailx, Enhanced features for interactive use Caching and disconnected operation …