BCSL 063 Assignment
BCSL 063 Assignment
Q1. (a) Write a shell script which will accept the PID of a process and display the details of that
process.
ANSWER:
process_details.sh
:wq type and these function saves the file and quite the program
Make it executable: chmod +x process_info.sh
Run it: sh process_info.sh and you get the below output
OUTPUT
1
Enrollment Number: 2252183973
Q1. (b) Create Remote Access Policy. Show how you can change to Remote Access Logging setting in
Windows 2000.
ANSWER:
2
Enrollment Number: 2252183973
5. Make your changes, then click OK.
Q2. (a) Write a shell program to scan all the files in a particular directory and list only those files which
start (file_name) with "a" or "A".
ANSWER:
list_a_files.sh
:wq type and these function saves the file and quite the program
Make it executable: chmod +x list_a_files.sh
Run it: sh list_a_files.sh and you get the below output
OUTPUT
3
Enrollment Number: 2252183973
Q2. (b) Install and configure TCP/IP settings in LINUX/UNIX operating system. Explain with step by
step procedure.
ANSWER:
Example:
nmcli device show enp0s3
This shows current IP address, DNS, gateway, etc.
Check DNS:
4
Enrollment Number: 2252183973
cat /etc/resolv.conf
Ping test:
ping 8.8.8.8
ping google.com
Q3. (a) Create a user account in the LINUX/UNIX Server. Set its password and define its permission
like'an administrator.
ANSWER:
Q3. (b) Configure a DNS Server as a Root Name Server in Windows 2000 Server. Explain with step by
step procedure.
ANSWER:
Step-by-Step Procedure
5
Enrollment Number: 2252183973
Step 2: Create the Root Zone (".")
1. In the DNS console tree, right-click on the server name.
2. Click "New Zone..." to start the New Zone Wizard.
3. Click Next.
4. Select Primary zone and click Next.
5. Choose Store the zone in Active Directory (optional) or keep it as a file.
6. For the zone name, enter just a dot (.) — this represents the root zone.
7. Accept the default zone file name (e.g., . becomes ..dns).
8. Click Next, then Finish.
This ensures the server doesn’t try to reach the actual internet root servers.
Q4. (a) In LINUX/UNIX system, access your account available at a remote machine. Download a file
from the remote location, modify that file and upload back to the remote machine.
ANSWER:
Make your changes and save the file (Ctrl + O, Enter, then Ctrl + X for nano).
6
Enrollment Number: 2252183973
Step 4: Upload the Modified File Back to Remote Machine
scp document.txt [email protected]:/home/user/document.txt
This overwrites the file on the remote machine with your modified version.
Q4. (b) Configure TCP/IP setting in LINUX/UNIX. Assume IP address is 192.168.1.2 and Port is
446.Explain with step by step procedure.
ANSWER:
who command: this will list all users currently logged in.
7
Enrollment Number: 2252183973
8
Enrollment Number: 2252183973
(c) To show the reference and name of the terminal.
tty command shows the name of the terminal you are using (e.g., /dev/pts/0).
(d) To create a new file with name "abc" in the current directory.
9
Enrollment Number: 2252183973
(e) To kill a process with its PID.
10