answersLogoWhite

0


Best Answer

This example of a tee command: $ ls | tee test_1 will write the result of ls (show files in current directory) on the computer screen, and will also write the result into a text file in the home directory named test_1. Use something like $ ls -l | tee -a test_1

to add a second list without over-writing the first list. Note: without -a the second list would simply overwrite the first list. With -a the second list is appended to the end of the first list.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the tee command do in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Tee Command in unix?

The Unix/Linux tee command permits the forking of a data pipe in a shell script or at the command line. The teecommand does this by both writing it's standard input to a file and to it's standard output simultaneously. Most implementations of tee provide for both file overwrite/creation and file appends by command line switch options.


What does the k command do in Linux?

k is not a standard command in Linux.


What is the command to turn on Linux?

There is no such command. Obviously, in order to enter a command into the prompt, Linux must already be on.


Which Linux command is equivalent to Windows' MD command?

In a Linux terminal, the command to create a new directory is: mkdir .


What Linux command sets a files permission?

In Linux the chmod command is used to set file permissions.


What is helo for Linux?

Nothing. Helo is not a recognized command in linux.


What is the maximum number of characters Linux allows in a keyboard command?

Linux does not have a limit as to the number of characters you can enter in a command.


What happens when you enter a Linux command in capital letters?

You get a command not found. Linux is case sensitive. So, for example: The command "systemctl" will not be the same as "SystemCTL" to a shell in Linux. One will work, the other will return an error saying there's no such command.


Can the tee command make five copies of a file?

cat inputfile | tee file1 | tee file2 | tee file3 | tee file4 > file5


What command line to heart beat stop and start in Linux system?

To stop heartbeat in Linux the command line will be service Heartbeat stop To start heartbeat in Linux the command line will be service Heartbeat start


What is the Linux equivalent of the Windows help command?

The man command.


What Linux command with tell you the location and path to a command?

pwd