![]() Related Questions Latest Answer : It' s simple(ls;who) >> xComments:*** (ls;who) prints both the outputs in stdout in the same sequence as commanded.*** >> is the "redirection + append" operator, hence the o/p from stdout is put into a file (appended) named x. ... Latest Answer : We can both read and write into the file ... PS1 pwdexport PS1 results ina). your primary prompt being your current directoryb). your primary and PS1 pwdexport PS1 results ina). your primary prompt being your current directoryb). your primary and secondary prompts being the current dirc). your primary prompt being your home dird). your primary and secondary prompts being the home dire). None of the above. If you type in the commandnohup sort employees > list 2 > error out & and log off ,the next time you log in . the output will bea). in a file called list and the error will de typed in a file error outb). there will be no file called list or error outc). error will be logged in a file called list and o/p will be in error outd). you will not be allowed to log ine). none of the above It is a data structure that defines all specifications of a file like the file size ,number of lines to a file ,permissions etc. What will the following program do?void main(){int i;char a[]="String";char *p="New String";char *Temp;Temp=a;a=malloc(strlen(p) + 1);strcpy(a,p); //Line no:9//p = malloc(strlen(Temp) + 1);strcpy(p,Temp);printf("(%s, %s)",a,p);free(p);free(a);} //Line no 15//a) Swap contents of p & a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation error in line number 5d) Generate compilation error in line number 7e) Generate compilation b PATH = /bin : /usr : /yourhomeThe file /bin/calendar has the following line in itcal 10 1997The file PATH = /bin : /usr : /yourhomeThe file /bin/calendar has the following line in itcal 10 1997The file /yourhome/calendar has the following line in itcal 5 1997If the current directory is /yourhome and calendar is executeda) The calendar for May 1997 will be printed on screenb) The calendar for Oct 1997 will be printed on screenc) The calendar for the current month( whatever it is) will be printedd) Nothing will get printed on screene) An error massage will be printed The redirection operators > and >>a) do the same functionb) differ : > overwrites, while >> appendsc) differ : > is used for input while >> is used for outputd) differ : > write to any file while >> write only to standard outpute) None of these b The command grep first second third /usr/you/myfilea) prints lines containing the words first, second or third from the file /usr/you/myfileb) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints themc) searches the files /usr/you/myfile and third for lines containing the words first or second and prints themd) replaces the word first with the word second in the files third and /usr/you/myfilee) None of the above b Latest Answer : configuration files. Example: /etc/lilo.conf, /etc/fstab , /etc/mtab , /etc/resolve.conf , /etc/profile, /etc/host.conf etc. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||