Blog Archives

How to Use the Tee command In Linux And Unix Operating Systems

Tee is a Linux and Unix command for writting STDIN to STDOUT. It is usefull when you want to redirect STDOUT to a file (or more) and also display it on the screen. tee -a appends text to files, like

Tagged with: , , , ,
Posted in The Linux and Unix Articles!

Redirect the standart output to a file which does not have write permissions

When you try to redirect the standard output (stdout) to a file not having write (w) permissions, you often get this error: “Permission denied” $ echo “test” > a.txt -bash: a.txt: Permission denied Do the trick by using sudo tee:

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!

How to redirect the standard output (stdout) and the standard error (stderr) to multiple files

In this article I will show you how to redirect the standard output and the standard error to multiple files, with tee. How to redirect the standard output (stdout) to multiple files: Using tee: command | tee file1 file2 $

Tagged with: , , , ,
Posted in The Linux and Unix Articles!

How to get root access inside Vim

It often happens to forget to use sudo when editing configuration files with vim. You write your modifications and when you want to save, you get the annoying error: “E45: ‘readonly’ option is set (add ! to override)”. The following

Tagged with: , , , ,
Posted in The Linux and Unix Articles!
Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!