Commit 5d699194 authored by ARSHDEEP SINGH's avatar ARSHDEEP SINGH


parent 7f669d80
while true
echo "My Error"
\ No newline at end of file
PS1="\u@\h - \t[\W]:$"
alias bk="cd$OLDPWD"
cd /proc
cat meminfo
grep -F2 'MemTotal' meminfo | tr -d ' ' | cut -c '10 11 12 13 14 15 16 17 18 19 20'
grep -F2 'MemFree' meminfo | tr -d ' ' | cut -c '10 11 12 13 14 15 16 17 18 19 20'
\ No newline at end of file
Group Name terror
Number 21
(150050050-Kunal Makwane)(150050106-Arshdeep Singh)(150070023-Snehal Chandan)
Honour Code:
I pledge on my honour that I have not given or received any unauthorized assistance on this assignment or any previous task.
-Kunal Makwane
I pledge I wont indulge in cheating or receive any kind of unauthorised assistance. I will always stay true to myself and my team and always claim only that work done by me.
-Arshdeep Singh
I pledge not to copy anybody's intellectual work and not to be involved in cheating and not receive any anauthorised assistance.
-Snehal Chandan
Reflection Essay:
*Got to learn about various Bash commands.
*Got to learn about the power of bash.
*Got to learn how to write loops in bash.
Task A
*Using PS1 command we can directly execute any Linux command, by specifying in the format $(linux_command).
*If the search is unsuccessful, the shell searches for a defined shell
function named command_not_found_handle. If that function exists, it is
invoked with the original command and the original command's arguments
as its arguments.
Task B s
cd /proc
cat meminfo
grep -F2 'MemTotal' meminfo | tr -d ' ' | cut -c '10 11 12 13 14 15 16 17 18 19 20'
grep -F2 'MemFree' meminfo | tr -d ' ' | cut -c '10 11 12 13 14 15 16 17 18 19 20'
Task C
2) //the image is not able to load in Image Viewer, but is able to load in ImageMagick.
3)ssh -X
Task D
Open the directory which contains our file "".
chmod +x
3)bash //run this file in background
ps -aux | grep "infinteLoop" //run this command in another bash terminal to check whether the infiniteLoop program is running or not
4)pkill --full "" // to kill the infiniteLoop program
5) //First another terminal to find the id of
ps -aux | grep "cell"
//After finding the id,run the command
kill -9 id
Member contribution:
All the three contributed equally.
Kunal Makwane 100%
Arshdeep Singh 100%
Snehal Chandan 100%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment