BSIT 4P B.Sc.(IT) 4th Semester Practical Question Paper Set (Give any one set to each student randomly) Set- 1 Write a program to print “ Welcome to Java Programming” on the screen public class welcome { public static void main (String args[]) { System.out.println("Welcome to Java programming"); } } Using a case statement‚ write a shell program to read a command (eg.‚ who‚ cal‚ ls‚ ps) from the user and execute it. echo "let me know what you want to do" while
Premium File system File system permissions
Guide to UNIX Using Linux Fourth Edition Chapter 5 Solutions Answers to the Chapter 5 Review Questions 1. You have just finished a 25-page paper that you have written using Emacs. The file containing the paper is called /assignments/data_sources. After your instructor has briefly looked at the paper‚ she recommends that you change all instances of the reference “data is” to “data are” before you submit it. Which of the following commands can you use to locate these references in the
Premium Data Field Computer file
Unit 3 Assignment 3 Chapter 7 Questions 1. What does the shell do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command? A. The shell tries to find an executable program with the same name as the command. When it does‚ the shell executes the program. When finishing the command put an & ampersand symbol at the end of the command and the command will run in the background. Then a cursor will be displayed immediately
Premium File system Computer file Output
#!/bin/bash #hangman game #author **************** #purpose: for science play_again() { echo "Would you like to play again?" read play_again if [[ "$play_again" =~ ^[yY] ]] ; then echo "Enjoy another game." game else echo "Thanks for playing. Have a good day." exit fi } echo echo " Welcome to Dan’s hangman game!" echo " all letters are lower cased " sleep 1 echo echo " Also all words are related to OS2" echo sleep 2 game() { blank=".................." # must be longer
Premium Word Orthography Microsoft Word
Date: 12 Oct 2013 Subject: Assignment 3 Chapter 7 page 251 Exercises 1‚3‚4‚8 1. What does the shell ordinarily do while a command is executing? What should you do if you do not want for a command to finish before running another command? While the command is executing‚ the shell waits for the process to finish. Or sleeps 3. What is a PID number? Why are these numbers useful when you run processes in the background? Which utility displays the PID numbers of the commands you are running?
Premium File system Output Input
Command’s Purpose Linux Basic Linux Example Copies files cp cp thisfile.txt /home/thisdirectory Moves files mv mv thisfile.txt /home/thisdirectory Lists files ls ls (all information ls –l) Clears screen clear clear Closes prompt window exit exit Displays or sets date date date Deletes files rm rm thisfile.txt "Echoes" output on the screen echo echo this message Edits files with simple text editor vi vi thisfile.txt Compares the contents of files diff diff file1 file2
Premium File system
University of Phoenix Material Systems Administration Scripting Log To: From: Date: 08/01/2011 As you complete each step listed below‚ keep track of what occurs at each point: what you type and the output given‚ as well as if you experience any errors. Submit this information in a log to your instructor for this week’s assignment. Your log can use the sample format provided‚ or create your own. 1. In the same folder as last week‚ create a new file called week4prog1[name].scr.
Premium File system Programming language
term paper Project on Linux Programming (CSE207) [pic] Project—SIMULATION OF CHMOD‚CHOWN AND CHGRP USING C PROGRAMMING AND WITHOUT USING ANY INBUILT COMMAND. Submitted by -- Submitted to aman Miss. Anjlee Verma INTRODUCTION TO STUDY/COURSE The present course Linux programming deals with various aspects of a very widely used operating system i.e. LINUX. Actually LINUX is not an OS in itself but a kernel i.e.‚ Heart of any operating
Premium Operating system File system
CISSP Practice Questions – Notes Please explain the first 6 practice questions on pages 1 &2 with respect to wrong answers‚ most are highlighted in red. Please explain the correct answer and why my choices are not correct. Thank you‚ Bonnie M. [1] [2] [3] I answered “C”‚ a MAC address; however‚ the correct answer is “B”‚ an IPv6 address. Please explain. [4] An IT Manager has requested that specific files stored on the company SAN containing data which is not protected by patent
Premium
RELATIONAL operators compare the relationship between two values or arguments The -v option of the grep command displays only lines that do not contain the search pattern You should omit spaces when you assign a variable without using single or double quotation marks around its value. A) True The -B option of the diff command does not compare for blank lines. The tput command enables you to initialize the terminal display or terminal window‚ to place text and prompts in desired locations
Free