
> >& >> <> 파일>& 파일$ ps -aux &>ps -aux 프로세스가 백그라운드로 동작함

fd> 파일date 1> ./output.txt : date 명령의 표준출력을 output.txt에 밀어 넣음date 2> ./output.txt : date 명령의 표준에러를 output.txt에 밀어 넣음$ 명령 2> /dev/null: 명령의 error를 보기 싫은 경우/에서 du를 사용하는데, 중간 중간 /proc 쪽 접근 불가 에러 보기 싫음
$ du -h --max-depth=1 2> /dev/null
fd>&fd 파일$ 명령 fd>&fd 파일
fd_src >& fd_dst 로 변경하는 것이다!$ 명령 2>&1 ./output.txt$ 명령 1>&2 ./output.txt$ ./program.sh > /dev/null 2>&1

>>>>echo -n "hello" >> sample.txt	# 없으면 새로 생성
echo -e "\tworld!" >> sample.txt
echo "nice to meet you" >> sample.txt
==== sample.txt ====
hello    world!
nice to meet you
>> file 2>&1$ cat files.txt >> file 2>&1
>>로 append 로 연다.cmd의 stderr(2)를 stdout(1)로 redirect한다.cmd의 stderr(2)를 stdout(1)로 redirect하여 file에 append한다.>>file1 2>>file2$ cat files.txt >>file1 2>>file2
>>로 append 로 연다.cmd의 stdout(1)은 file1, stderr(2)은 file2로 redirect한다.| :pipe명령 | 명령>, >>, >& 과의 차이 점은 뒤에오는 dst가 
$ ls | grep "find"
$ tmux show-buffer | xclip -sel clipboard
cat > ./hello.txt << EOF
> Name: Hello
> Age: 28
> EOF