타 기능의 함수 (문자열 PARAM가) 사용 방법 : 윈 기능을 시험하기 전에배쉬 : 내 .bashrc에 이러한 기능을 가지고
# This function just untar a file:
untar()
{
tar xvf $1
}
# This function execute a command with nohup (you can leave the terminal) and nice for a low priority on the cpu:
nn()
{
nohup nice -n 15 "[email protected]" &
}
, 나는 타르를 만들 :
nn untar test.txt.tar
만이 작동합니다 :
echo test > test.txt
tar cvf test.txt.tar test.txt
지금 제가하고 싶은 것은
nohup.out은에서 여기nn tar xvf test.txt.tar
오류 :
nice: ‘untar’: No such file or directory