⟩ How is FAT32 file system mounted in Linux file system?
1: mkdir /kaka
2: open vim /etc/fstab and mount it permently.
3: mount -t vfat /dev/hda1 /kaka
4: /dev/hda1...... drive name.
1: mkdir /kaka
2: open vim /etc/fstab and mount it permently.
3: mount -t vfat /dev/hda1 /kaka
4: /dev/hda1...... drive name.
What will be output of following command $ echo "The process id is" $$$$ a) The process id is $$ b) The process id is $<pid>$<pid> c) The process id is <pid><pid> d) The process id is $$$$
What is the return value ($?) of this code os = Unix [$osName = UnixName] && exit 2 [${os}Name = UnixName] && exit 3 a) 0 b) 1 c) 2 d) 3
Which of these is not a valid variable in bash a) __ (double underscore) b) _1var (underscore 1 var ) c) _var_ (underscore var underscore) d) some-var (some hyphen var)
How do you print the lines between 5 and 10, both inclusive? a) cat filename | head | tail -6 b) cat filename | head | tail -5 c) cat filename | tail +5 | head d) cat filename | tail -5 | head -10
What would be the current working directory at the end of the following command sequence? $ pwd /home/user1/proj $ cd src $ cd generic $ cd . $ pwd a) /home/user1/proj b) /home/user1/proj/src c) /home/user1 d) /home/user1/proj/src/generic
Tell me which of the following commands allows definition and assignment of environment variables under bash a) env b) export c) environ d) setenviron
The redirection 2> abc implies a) Write file 2 to file abc b) Write standard output to abc c) Write standard error to abc d) none of the mentioned
cmd 2>&1 > abc will a) Write file2 to file1 b) Write standard output and standard error to abc c) Write standard error to abc d) Write standard output to abc & standard error to monitor
From where would the read statement read if the following statements were executed? exec < file1 exec < file2 exec < file3 read line a) It would read all the files b) It would not read any files c) It would read all the files in reverse order d) It would read only file3
Which of these is the correct method for appending "foo" in /tmp/bar file? a) echo foo > /tmp/bar b) echo foo >> /tmp/bar c) echo foo | /tmp/var d) /tmp/bar < echo foo