Operating Systems: Unix/Linux and Windows Commands
Test your knowledge of Unix/Linux commands, shell scripting, and Windows server administration including networking, disk management, and user sessions.
Questions
What should you do when you want to track disk space use on a per-user basis but do not want to deny users access to a volume?
- Enable disk quotas
- Enable disk quotas and set the disk quota warning level
- Enable the disk quota warning level only
- Disable disk quotas
What happens when you end a disconnected session running on the remote server?
- all data is lost
- only the connection closes
- all applications running on the server remain active
- the session becomes available on the server.
sh is
- The "shell" programmable command-line interpreter, the primary user interface
- switch holder command
- Select holder
- None of the above
To run a script the command is
- su scriptname
- sh scriptname
- ls scriptname
- cd scriptname
cat command is used to
- display the list of files and directories present
- display the contents of a file
- display the list of files present
- display the list of directories present
cp command is used to
- copy files and folders from one location to other location
- creates a process
- creates a process id
- moves files and folders from one location to other location
rm command is used to
- Resource Management
- deletes files and folders
- deletes files
- deletes folders
chmod +777 stands for
- Grants execute permission to owner,group and others
- Grants write permission to owner,group and others
- Grants read permission to owner,group and others
- Grants All permissions to owner.group and others: 4 (read) + 2 (write) + 1 (execute) = 7
The command used to move to the second input command line argument is
- shift $2
- shift + 2
- shift 2
- shift * 2
cmp -s $AXA_BA_ENVPATH_SRC/$file $AXA_BA_ENVPATH_TRG/$file -s stands for
- Print nothing for differing files; return exit status only.
- Print the byte number (decimal) and the differing byte values (octal) for each difference.
- Compares the given 2 fils and writes in a ouput file
- Compares the given 2 fils and displays the result
cp -p $AXA_BA_ENVPATH/$1/$f $AXA_BA_ENVPATH/$2 -p stands for
- Copy and print the contents
- Preserve the characteristics of the source_file. Copy the contents, modification times, and permission modes of the source_file to the destination files.
- Copy and purges the files
- All of the above
if [ -d $AXA_BA_ENVPATH/$1 ] -d stands for
- none of the above
- Checks for the existence of a directoy
- Checks for the existence of a file
- Checks for the existence of a file/directoy
if [ -s $AXA_BA_ENVPATH/$1/* ] -s stands for
- None of the above
- Both 3 and 4
- checks for the existence of the directories
- checks for the existence of the files
The command used to get the permission rights of lsfadmin inorder to change the file parameters is
- sudo - su lsfadmin
- sudo su - lsfadmin -
- sudo su - lsfadmin
- sudo su -lsfadmin
ln -sf /sasdata/STG/ETL/ODD ODD The meaning of this line is
- ODD is a symbolic link created for the folder /sasdata/STG/ETL/ODD
- Both ODD and /sasdata/STG/ETL/ODD refers to same area
- Creates a line number for the file
- Creates a hard link for the folder
cd /sasdata/PRD/ETL/jobs .This will make the current directory as the given one.
- True
- False
ls is used to list the files and directories present in a folder. ls -lrt stands for
- L Displays the file or directory referenced by a symbolic link.
- r Displays files in reverse order.
- -t Displays newest files first. (based on timestamp)
- None of the above
On which is the following OS hibernation feature is available?
- Windows 98
- Windows XP
- Suse Linux
- Windows 200
When logging into a PC. If you get an error message "The system cannot log you on because the domain is not available" What are the possible reasons?
- Operating system windows may be corrupted
- You may be using earlier version of windows
- Your system is not connected to the Network or Network cable is unplugged
- User name and password provided is incorrect