The most common options are:
Examples:
Copy file1 to file2 in the same directory:
$ cp file1 file2
Copy file1 to the /tmp directory:
$ cp file1 /tmp
Copy file1 located in the /tmp directory to the local directory. The symbol “.” (dot) specifies the directory as local:
$ cp /tmp/file1.
Copy the entire contents of the /var/log directory, including all subdirectories to the “loglocal” directory:
$ cp —Rf /var/log/ loglocal
The sudo command on Linux executes a given command as if it were another user.…
The ss command on Linux is extremely useful for investigating sockets, providing various information about…
Free Linux command shows the amount of total memory in use and available, as well…
The shell has structures for testing conditions and executing certain program sequences several times (loop),…
The /etc/fstab file stores the configuration of which devices should be mounted and what is…
The Netcat Command in Linux or nc is a utility used to do “almost anything”…
This website uses cookies.