Q61
Q61 Which command shows a dynamic view of running processes in real-time?
ps
top
kill
chmod
Q62
Q62 How would you display the PID of a process by name, such as "bash"?
ps bash
pid bash
ps -C bash
find bash
Q63
Q63 How would you change the priority of a process with PID 1234 to a higher priority using nice?
nice -n 10 -p 1234
nice -n -5 1234
renice -5 1234
nice 1234
Q64
Q64 Which command sends a "SIGTERM" signal to terminate a process with PID 5678?
kill -15 5678
end 5678
stop -15 5678
terminate 5678
Q65
Q65 A process is not responding to a kill command. What alternative command can forcefully terminate it?
stop
kill -1
kill -9
end
Q66
Q66 A script is creating too many child processes and slowing the system. What command could help limit CPU usage?
nice
stop
ps
end
Q67
Q67 A terminated process continues to appear in the process list. What is likely the cause?
It is a zombie process
It was restarted
It has no PID
It is running in the background
Q68
Q68 Which command is used to display the IP address of a Unix machine?
ping
netstat
ifconfig
hostname
Q69
Q69 What is the purpose of the ping command in Unix networking?
To display IP address
To test network connectivity
To view routing table
To change MAC address
Q70
Q70 Which command lists all open ports and active connections in Unix?
ping
netstat
traceroute
telnet
Q71
Q71 What does the traceroute command do in Unix?
Traces packet route to destination
Lists all network interfaces
Tests network speed
Monitors file transfers
Q72
Q72 Which command is used to capture and analyze network packets in Unix?
ping
traceroute
tcpdump
netstat
Q73
Q73 How would you use the ping command to check connectivity with a server at IP 192.168.1.1?
ping 192.168.1.1
check 192.168.1.1
netstat 192.168.1.1
trace 192.168.1.1
Q74
Q74 How would you display only the active internet connections using netstat?
netstat -a
netstat -r
netstat -i
netstat -at
Q75
Q75 Which command would you use to transfer files over a network using SSH in Unix?
scp
ftp
rsync
curl
Q76
Q76 A network connection fails with a "Host unreachable" message. What is a likely cause?
Incorrect port
Incorrect IP
Network is down
File not found
Q77
Q77 A user cannot connect to a remote server despite correct credentials. Which command can verify connectivity?
telnet
ssh
ping
scp
Q78
Q78 A user can ping a server but cannot access it via ssh. What could be a likely reason?
SSH disabled on server
Incorrect password
Invalid IP
Full disk
Q79
Q79 Which command is used to search for a specific pattern in a file in Unix?
sed
awk
grep
cat
Q80
Q80 What does the sed command primarily do in Unix?
Modifies file permissions
Searches for files
Streams and edits text
Displays process information
Q81
Q81 Which tool is commonly used for field-based text processing in Unix?
grep
sed
awk
ps
Q82
Q82 What is the purpose of using regular expressions with grep?
To enhance search flexibility
To improve execution speed
To manage files
To edit text files
Q83
Q83 How do you use grep to find lines containing "error" in a file named log.txt?
find error log.txt
search error log.txt
grep "error" log.txt
error log.txt
Q84
Q84 How would you replace all occurrences of "foo" with "bar" in a file using sed?
sed "foo/bar" file
sed 's/foo/bar/g' file
grep "foo" "bar" file
awk "foo=bar" file
Q85
Q85 Which awk command prints only the first column of each line in a file named data.txt?
awk '{print $1}' data.txt
awk print1 data.txt
awk $1 data.txt
awk print1 data
Q86
Q86 How would you count the occurrences of the word "failed" in a file using grep and wc?
grep "failed" file | wc -l
grep -c "failed" file
grep "failed" file wc -l
count "failed" file
Q87
Q87 A grep search returns no results, but you know the pattern exists. What could be the cause?
Incorrect syntax
Case sensitivity
File is empty
File permissions issue
Q88
Q88 The sed command fails with "no such file or directory." What could be the issue?
Incorrect sed syntax
Missing input file
Pattern syntax error
Permission denied
Q89
Q89 awk script produces syntax errors. What is a likely cause?
Improper permissions
File not executable
Improper field reference
Missing awk interpreter
Q90
Q90 Which command opens a file in the vi editor in Unix?
open
nano
edit
vi