Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to append on file in IO redirection

cmd >>file.txt 2>&1

>>file.txt: Open file.txt in append mode and redirect stdout there.
2>&1: Redirect stderr to "where stdout is currently going". In this case, that is a file opened in append mode. In other words, the &1 reuses the file descriptor which stdout currently uses.
Comment

PREVIOUS NEXT
Code Example
Shell :: bash windows open folder in exporer 
Shell :: samtools extract sequence from bam file 
Shell :: how to debug a specific pod when Replication controller is doing load balancing 
Shell :: how to do sum with exper in linux 
Shell :: bash get length of rows 
Shell :: get filebeat version 
Shell :: disabling asking for password on linux 
Shell :: trash path linux 
Shell :: extract tar 
Shell :: restart ssh 
Shell :: how to remove a plugin from ionic project 
Shell :: last return code linux 
Shell :: almofire pod install 
Shell :: thousand separator shell 
Shell :: install discord ubuntu 
Shell :: git log format online 
Shell :: descomprimir tar gz 
Shell :: check number of threads in a process linux 
Shell :: ram speed check 
Shell :: install brave browser manjaro 
Shell :: how to install lm sensors 
Shell :: posh git install windows 
Shell :: get all remote branches 
Shell :: how to access docker container bash 
Shell :: ruby update single gem 
Shell :: how to install nautilus 
Shell :: intellij ultimate install ubuntu 
Shell :: docker starting forever 
Shell :: git clone submodule 
Shell :: bash while true 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =