1. The wc filter :
Answers:
Answers:
Answers:
Answers:
are as follows
Alexandre Dumas
Alexandre Dumas
Alexandre Dumas
Gerald Durrell
Giovanni Guareschi
Giovanni Guareschi
James Herriot
Louisa May Alcott
Louisa May Alcott
Louisa May Alcott
Based on the above information, what will be the output of the command
uniq -u oldies-goldies ?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
rmdir c-prog
will not work if :
Answers:
Answers:
ls | more
displays a list of :
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
File names :
Answers:
Answers:
Answers:
Answers:
Which of the following files will not be displayed by this command ?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
rm -r project
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
-rw——- 1 abc student 10 jan 10:39 abc1
What inference would you make regarding the file access permissions ?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
- counts the number of words in a disk file or in the standard input
- counts the number of characters in a disk file or in the standard input
- counts the number of lines in a disk file or in the standard input
- can only be used with one file at a time
Answers:
- compress
- zip
- pack
- comp
- size
Answers:
- Administrator
- The root user
- All the members of the Administrator group
- Account owner
Answers:
- $ cal april 2007
- $ cal april 07
- $ calendar 4 07
- $ cal 4 2007
are as follows
Alexandre Dumas
Alexandre Dumas
Alexandre Dumas
Gerald Durrell
Giovanni Guareschi
Giovanni Guareschi
James Herriot
Louisa May Alcott
Louisa May Alcott
Louisa May Alcott
Based on the above information, what will be the output of the command
uniq -u oldies-goldies ?
Answers:
- Gerald Durrell
- James Herriot
- Gerald Durrell James Herriot
- Alexandre Dumas Gerald Durrell Giovanni Guareschi James Herriot Louisa May Alcott
- Louisa May Alcott
Answers:
- Ctrl+c
- Ctrl+d
- Ctrl+u
- Ctrl+s
- Ctrl+q
Answers:
- count
- grep
- wc
- word count
Answers:
- Minimize the net execution time.
- Maximize the processor utilization.
- Minimize the user response time.
- Minimize the number of instructions required for a process.
- Minimize the end user’s involvement required for a task.
Answers:
- sp
- mem
- hd
- du
- rm
Answers:
- changes the current execution status from the user mode to the kernel mode.
- makes a file hidden so that it cannot be seen using the ls command.
- switches the screen from character to graphical mode.
- changes the access permissions of a file or directory.
- changes the password of a user.
Answers:
- /var/adm/sw/install
- /var/adm/sw/software
- /var/adm/sw/recent
- /var/adm/sw/products
Answers:
- It will remove the directory and all the files present in that directory
- It will remove all the files but not the directory
- It will show an error message
- None of the above
Answers:
- 0
- 1
- -1
- 100
- 10
Answers:
- PS1
- PATH
- PROMPT
- HOME
- LOGNAME
Answers:
- changes the name of a file
- changes the name of a directory
- moves a file from one location to another
- a and b
- a,b and c
Answers:
- chmod
- chgroup
- chgrp
- grpch
Answers:
- -name
- -type
- -ok
- -exec
- -mtime
rmdir c-prog
will not work if :
Answers:
- c-prog is not empty.
- c-prog is the current working directory.
- full pathname is specified with rmdir.
- a and b.
- a and c.
Answers:
- Using lpdest environmental variable
- Using spooler command
- Using lpadmin command
- Using printf command
ls | more
displays a list of :
Answers:
- all the files in the current directory.
- all the files in the current directory one line at a time.
- all the files in the current directory one screen at a time.
- all the files in the current directory and then waits for the next command.
- all the files in all the directories.
Answers:
- $#
- $-
- $?
- $$
- $!
Answers:
- $#
- $*
- $?
- $$
- $!
Answers:
- -u
- -d
- -c
- -l
- -r
Answers:
- The terminal is the standard source for input and the standard output and standard error destination for most UNIX commands.
- All data sources and destinations are treated as files in UNIX.
- The three standard files have a file descriptor 0 – standard output file 1 – standard input file 2 – standard error file
- The input , output and error output can be redirected to a file other than the standard file using file descriptors and the > or < symbol.
- The output and error can be redirected in the append mode to add the redirected output or error to an existing file using the >> symbol.
Answers:
- -r
- -f
- -n
- -t
- -o
Answers:
- assist
- help
- reference
- aid
- man
Answers:
- md
- makedir
- mkdir
- dirmake
- newdir
Answers:
- more filename
- type filename
- file filename
- info filename
- list filename
File names :
Answers:
- should not have a blank, or a tab.
- can contain digits, a dot, the hyphen or the underscore anywhere.
- can contain both upper-case and lower-case alphabets.
- are not case sensitive.
Answers:
- The file owner.
- The group owner of the file.
- Other users who are not part of the group.
- a and b.
- a,b and c.
Answers:
- $ msg
- $ talk
- $ send
- $ call
Answers:
- tput cup
- tput smso
- tput rmso
- tput blink
- tput rev
Which of the following files will not be displayed by this command ?
Answers:
- reminder
- receipt
- Receipt
- recipe-cake
- re.c
Answers:
- cut -f4-2 trans
- cut -f2,3,4 trans
- cut -f2-4 trans
- a or b.
- b or c.
Answers:
- /etc/profile
- /etc/home
- /etc/passwd
- /etc/conf
Answers:
- -name
- -type
- -ok
- -exec
- c or d.
Answers:
- grep
- cut
- tr
- wc
- tee
Answers:
- link f1 f2
- link -s f1 f2
- ln f1 f2
- ln -s f1 f2
- ln -l f1 f2
Answers:
- err
- error
- stderr
- errfile
- errdev
Answers:
- chmod ugo +rw abc
- chomd abc ug -rw
- chmod ug -rw abc
- chmod ug+rw abc
Answers:
- pwd
- cd
- dir
- ls
- cur
Answers:
- Preparing it for backup.
- Copying all the files from one filesystem to another.
- Moving all the files from one filesystem to another.
- Loading a filesystem from backup medium like tape.
- Providing a link to the filesystem to be mounted so that it appears as a local subdirectory.
Answers:
- 0
- 1
- 2
- 3
- 4
Answers:
- the name of a command.
- the name of the administrator.
- the name of the UNIX server.
- a program in a state of execution.
- another name for a file.
Answers:
- The user cannot move out of the current working directory.
- The user cannot change the path; execution of programs in directories other than those authorised by the system is prevented.
- The user cannot specify absolute path-names beginning at the root.
- The user cannot redirect input or output.
- The user is not allowed to see the listing of files in his working directory.
Answers:
- /
- :
- ,
- ;
Answers:
- who am i
- show group
- group
- id
Answers:
- rmdir
- rmdir -r
- rmdir -e
- rmdir -t
- rmdir -u
Answers:
- pwd
- cd
- ls
- mv
- rm
Answers:
- special programs that prevent the system from crashing.
- disk management utilities.
- memory management utilities.
- a special feature by which the standard output of a command or user program can be sent as the standard input to another command or user program
- special channels for high speed data transfer.
Answers:
- global
- export
- scope
- grant
- extend
Answers:
- UNIX operating system is available on machines with a wide range of computing power, from microcomputers to mainframes.
- UNIX is a multi-user system designed to support a group of users simultaneously.
- UNIX uses a hierarchical file structure to store information.
- At the core of UNIX is the shell, a program controlling the computer’s resources.
- UNIX has facilities called pipes and filters which permit the user to create complex programs from simpler programs.
Answers:
- rm /user/group2/..
- rm /user/group2/??
- rm /user/group2/**
- rm /user/group2/–
- rm /user/group2/;;
Answers:
- UNIX files assume all data to be consisting of streams of bytes.
- UNIX commands use the system calls for their operations.
- UNIX adopts a priority based scheduling strategy.
- UNIX process priorities cannot be changed by the user.
- The UNIX system call signal is used to handle interrupts.
Answers:
- Time-sharing
- Multi-tasking
- Multi-programming
- a and b.
- a,b and c.
Answers:
- reads a command line from the standard input and interprets it according to a fixed set of rules.
is a framework into which functions or utilities can be added when required. - is the interface between the user and the kernel.
- a and b.
- a and c.
Answers:
- “New[abc]”
- “New[a-c]”
- “New[^abc]”
- a or b.
- b or c.
Answers:
- Variables have no data type.
- Variables can be local or global.
- Variables can be created at the $ prompt or within a shell script.
- Global variables are created by the global command.
- Environment variables are created by the shell.
Answers:
- 0
- 1
- 2
- 3
- 4
Answers:
- write
- edit
- editor
- pad
- vi
Answers:
- -u
- -d
- -c
- -l
- -r
Answers:
- !
- #
- @
- $
Answers:
- 3
- 4
- 5
- 6
- 7
Answers:
- C++
- JAVA
- PASCAL
- FORTRAN
- C
Answers:
- timer
- at
- time
- atq
- dd
Answers:
- v1=v2
- v1=$v2
- v1=${v2}
- a or b.
- b or c.
Answers:
- talk
- write
- chat
- talkto
- transmit
Answers:
- $-
- $?
- $!
- $#
- $$
Answers:
- Batch processing operating system.
- Time sharing operating system.
- Real time sharing system.
- Single user operating system.
- Assembly language.
Answers:
- The user’s name.
- The user’s terminal file name.
- The day the user logged in.
- The time the user logged in.
- The day the user logged in the last time.
Answers:
- vs = ‘hello’
- vs=’hello’
- vs=hello
- a or b
- b or c
Answers:
- sort
- grep
- uniq
- pg
- echo
Answers:
- printline
- cmp
- com
- comm
- prncomm
Answers:
- /usr/init
- /usr/profile
- /usr/startup
- /etc/startup
- /etc/profile
Answers:
- pg
- wc
- tr
- cut
- tee
Answers:
- grep
- cut
- tr
- wc
- tee
Answers:
- terminate
- end
- break
- stop
- exit
Answers:
- searches for specific patterns of characters in file.
- is used for locating words in a file.
- Is used to locate files in a directory and in all subdirectories of that directory.
- can only be used by the administrator.
- is used for locating users in a network.
Answers:
- tput cup
- tput smso
- tput rmso
- tput blink
- tput reverse
Answers:
- uniq is a filter.
- It compares adjacent lines in a sorted file.
- It can display lines that are unique.
- It can display lines that are repeated.
- It automatically sorts the file that is specified.
rm -r project
Answers:
- deletes the file project from the current directory.
- deletes all the files from the directory project.
- recursively deletes the directory project and all its subdirectories.
- deletes the file project found in all directories.
- is invalid.
Answers:
- []
- ^
- .
- $
Answers:
- tput cup
- tput smso
- tput rmso
- tput blink
- tput reverse
Answers:
- []
- ^
- $
- .
Answers:
- -n
- -c
- -d
- -l
- -v
Answers:
- []
- ^
- $
- .
Answers:
- /etc/passwd
- /etc/password
- /usr/password
- /bin/passwd
- /system/password
Answers:
- -r
- -f
- -n
- -t
- -o
Answers:
- $HOME/startup
- user/init
- $HOME/.profile
- etc/startup
Answers:
- bsh
- sh
- csh
- ksh
- lsh
Answers:
- passwd
- pass
- chpass
- password
- setpass
Answers:
- echo
- wc
- mv
- rm
-rw——- 1 abc student 10 jan 10:39 abc1
What inference would you make regarding the file access permissions ?
Answers:
- The group have full permissions.
- Only the owner has full permissions.
- Only the owner has read and write but no execute permissions.
- The group has read and write permissions.
- Others have read and write permissions.
Answers:
- filecmp
- filecompare
- filediff
- diff
Answers:
- sh
- csh
- ksh
- rsh
- lsh
Answers:
- -r
- -f
- -n
- -t
- -o
Answers:
- ls
- cat
- mv
- cp
- break
Answers:
- *
- –
- #
- ?
- @
Answers:
- ls -l
- ls -F
- ls -o
- ls -r
- ls -h
Answers:
- /
- home
- /home/username
- usr/
- usr>
- usr/username
Answers:
- They are used to create generalised scripts.
- There can be a maximum number of 9 variables.
- The shift command is used when the number of parameters exceeds 9 to shift the values of variables.
- Depending upon the number of arguments specified in the command line, the shell will assign values to some or all of the positional parameters.
- The command name is put into the variable $1.
Answers:
- By looking in the etc/passwd
- By using passwd command
- It is not possible
- None of the above
Answers:
- It has the provision of security through the login and passwd programs.
- In it the file names are not case insensitive.
- It has the provision of various commands and utilities for file and directory manipulation.
- It does not allow relative path names.
- It allows the use of wild-card characters for file-name expansion.
Answers:
- cut
- head
- tail
- b and c
- a, b and c
Answers:
- Setting permissions for files and directories
- Creation of users and group-ids
- Providing security through the use of passwords
- a and c
- a,b and c
Answers:
- PS1
- PATH
- HOME
- LOGNAME
- IFS
Answers:
- It is used to seach a file for a particular pattern of characters and displays all lines that contain that pattern.
- The pattern that is searched for in the file is referred to as the regular expression.
- grep can be used without specifying a regular expression.
- The filenames are optional.In this case grep expects standard input.
- The -c option prints only a count of the lines that match the pattern.
Answers:
- Ctrl+a
- Ctrl+b
- Ctrl+c
- Ctrl+d
- Ctrl+e
Answers:
- show route
- route status
- netstat -rn
- None of the above
Answers:
- File Not Found
- Stale File Handle
- Invalid Command
- File Inaccessible
Answers:
- 0
- 1
- 2
- 3
No comments:
Post a Comment