Q1). list all file within a directory which have a vowel anywhere in their name.
ans1).
$ls *[aeiou]*.
Q2).name any two shells used in linux.
ans2).
ZSH, TCSH,BASH,CSH etc.
Q3). create a directory with no read , write and execute permissions.
ans3).
$mkdir unixrape
$chmod 000 unixrape
Q4). create a command of your own which prints say "Unix Rape".
ans4).
create and compile a C program to print "Unix Rape".
rename a.out to say vikash.
type $PATH @ command line to get a list of the paths.
copy your new executable to one of these.
type command name( here it is vikash) and see for the result.
Q5).find out whether there is a windows partition or not in your hard-disk.
ans5).
$fdisk -l
see for the output.
Q6). suppose there is no windows entry in your boot menu, but you know that you have windows installed on a partition, execute appropriate commands to boot into windows.
ans6).
step 1: $fdisk -l
step 2: find out windows partition
step3: restart the machine.
step4: go to grub command line.
step 5: type rootnoverify (hd0,1) or whatever partition you have windows installed on.
step6: type chainloader +1
step7: type boot.
and you are done.
the machine will boot into windows.
Q7).shutdown "GDM" and make yourself available to the command line interface only.
ans7).
$/etc/init.d/gdm stop
now press ctrl+alt+f3;
and you are done.
No comments:
Post a Comment