LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Some linux questions I would to ask everyone here (http://www.linuxquestions.org/questions/linux-newbie-8/some-linux-questions-i-would-to-ask-everyone-here-878022/)

mansour 04-30-2011 12:23 PM

Some linux questions I would to ask everyone here
 
Hi everyone:


These are a few of questions in a Unix exam I had recently.
I am curious to know the answers.


Code:

1)  A listing of inodes are unique in different ..............
 
1) File systems
 
2) Partitions
 
3)  Files
 
4)  don't remember
 
 

2)  When you remove all the ............ system considers the file removed.
 
1) Hard links
 
2) Soft links
 
3)  Files
 
4)  don't remember

 
 
3)  What is the command to compile a file script in shell.
 
1) gcc
 
2) don't remember
 
3) vi
 
4)  don't remember

 
 
4)  which one of these are not an editor in unix?
 
1) Nano
 
2)  Pico
 
3)  Vi
 
4) none of the above
 
 
 
5) When you don't partition a disk in Unix, by default Unix
creates all the directories under.......
 
1) / root
 
2) / etc
 
3)  / home
 
4)  none of the above
 
 
5)  ps command  is used to find out which processes are
currently running.
 
True
 
or
 
False
 
 
 
 
6)  To bring a background process to the foreground, fg command
is used with the process ID of the process.
 
True
 
or
 
False
 
 
 
7)  Which one of these are a windows based file system.
 
1)  Ext2
 
2) NTFS
 
3) Ext3
 
4)  FAT
 
 
 
8)  Which one of these is not an operating system?
 
1)  Windows
 
2)  DOS
 
3)  Unix
 
4) None of the above
 
 
9)  if  [ -f    /bin/ls ];  then echo " I found it"
is a valid path for
 
 
 
1)  Directory
 
2)  File
 
3) File system
 
4)  don't remember


Thank you

mansour

Hevithan 04-30-2011 01:00 PM

Are you asking people on a forum to take your exam for you -or- are these questions from you exam you have an interest in have further information on? :confused:

repo 04-30-2011 01:13 PM

A google search will answer all your questions.

Kind regards

mansour 04-30-2011 02:01 PM

Quote:

Originally Posted by Hevithan (Post 4342071)
Are you asking people on a forum to take your exam for you -or- are these questions from you exam you have an interest in have further information on? :confused:



No, This is the exam I already took, but not sure of the answers, and will never know the answers, since the course is over.


mansour

repo 04-30-2011 02:02 PM

Quote:

No, This is the exam I already have done, but not gotten the answers yet, and will never know the answers, since the course is over.
Well, you should find the answers in your books, no?

Kind regards

mansour 04-30-2011 02:06 PM

Quote:

Originally Posted by repo (Post 4342076)
A google search will answer all your questions.

Kind regards


Actually I did search google, and I got some info but no definitive answer on most.
Googling any linux questions, would often return a page from this forum as well.
I thought this forum is the best place to get the answer to these questions.
Google isn't what some people believe, at least my experience shows me so.
It is sometimes useful and a lot of times not so useful.


mansour

Arcane 04-30-2011 02:09 PM

Quote:

Originally Posted by mansour (Post 4342127)
No, This is the exam I already have done, but not gotten the answers yet, and will never know the answers, since the course is over.{...}

Sorry but..
a)It's hard to believe exam is over or that teacher won't help with discussing answers after exam..and you mentioned exam is over then teachers|schoolmates don't have problem sharing answers.
b)Not hard exam..just need small research and common sence.
Good luck with exam. :)

MTK358 04-30-2011 02:13 PM

#4 should be very easily be answered by Google. By searching "vi", "Pico", and "nano", you would quickly find out that they are all Unix editors.

catkin 04-30-2011 02:15 PM

How come "3) What is the command to compile a file script in shell." has two "don't remember" answer options and what does the question mean anyway?

Regards "2) When you remove all the ............ system considers the file removed", the system doesn't "consider" -- it follows definitive algorithms. If the question should have been "when is the file removed" then "removed" needs clarifying. If it means "when is its data freed in the file system" then none of the answers are correct.

mansour 04-30-2011 02:19 PM

Quote:

Originally Posted by repo (Post 4342129)
Well, you should find the answers in your books, no?

Kind regards


Well some of them, I am not sure are even correct.


like:


6) To bring a background process to the foreground, fg command
is used with the process ID of the process.

True

or

False

The answer here could be both true and false.

You could bring it to the foreground with fg and grep as my boss said to me.
But you couldn't bring to the foreground by fg alone + process ID. unless you use, jobs command first.

script & (run a script in the background)

jobs -l ( get its jobs ID )

then fg %jobs ID ( bring it to the foreground )




7) Which one of these are a windows based file system.

1) Ext2

2) NTFS

3) Ext3

4) FAT


Here there are two correct answers. Both Fat and NTFS are windows based file systems

catkin 04-30-2011 02:30 PM

Quote:

Originally Posted by mansour (Post 4342148)
6) To bring a background process to the foreground, fg command
is used with the process ID of the process.

True

or

False

The answer here could be both true and false.

fg without arguments brings the the shell's notion of the current job is into the foreground.

The more course questions we see posted on LQ by students, the more dubious becomes the quality of teachers.

singhjc 05-01-2011 02:22 AM

1:- 1) A listing of inodes are unique in different ..............

1) File systems

2) Partitions

3) Files

4) don't remember

here above three answers are correct ( file systems, Partitions,Files)

you could check by ls -i for checking inodes

spankbot 05-01-2011 02:48 AM

1) The person who wrote this test needs to go back to school.

a) True _x_

b) False ___

onebuck 05-01-2011 08:41 AM

Hi,

@OP; Remember that 'man command' is always available to you.

You could <Linux> - Google Search most of the questions that are presented by using good keywords or look some of the links below. These links will aid you to gaining some understanding but YOU will need to work for it;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

Fred Caro 05-01-2011 09:18 AM

unix exam
 
What 'unix' exam was undertaken? Was it for Unix or GNU/Linux? I would associate Vi with Unix but not nano but maybe that is just historical?


All times are GMT -5. The time now is 10:49 PM.