> Sign
The symbol > is used to redirect the output of a command.
#cat >list1
cat command read standard input(keyboard) and > redirect the output, which normally goes to screen but in this case is moved into a file called list1
The symbol > is used to redirect the output of a command.
#cat >list1
cat command read standard input(keyboard) and > redirect the output, which normally goes to screen but in this case is moved into a file called list1
>> Sign
#cat >>list1
>> (symbol) will add more items to the existing file list1
>> (symbol) will add more items to the existing file list1
Merging two files
If we have two files list1 and list2 and merging these files in one file.
#cat list1 list2 > biglist
#cat biglist (to read contents of file and verify changes)
(pipe sign)
We use sign to concatenate more than than one commands together.
If we have two files list1 and list2 and merging these files in one file.
#cat list1 list2 > biglist
#cat biglist (to read contents of file and verify changes)
(pipe sign)
We use sign to concatenate more than than one commands together.
#crontab -l grep hello.sh
Waqas Rafi
1 Comment:
your post remind days of my university when i was eager to get my hand of linux operating system but what i think is that we should learn the architecture of Linux os if we want to extensively understand fundamental should start with bash or some low level like assembly to do that well that's just me thanks for command links.
Regards Rabia tareen
Post a Comment