Homework Help Question & Answers

1. Install the supplied bash script on the Kali Linux VM BASH filename :ipLAN In text...

1. Install the supplied bash script on the Kali Linux VM

BASH filename :ipLAN

In text editor looks like this

#!/bin/bash
is_alive_ping()
{
   ping -c 1 $1 >/dev/null 2 >&1
   [ $? -eq 0 ] && echo Node with IP: $1 is UP.
}
for i in 192.168.1.{1..255}
do
is_alive_ping $1 & disown
done

QUESTION:

  1. Install the supplied bash script on the Kali Linux VM

**NOte how do i install the above script in kali ,when i am doing it the output says bad inetrpreter no such file or directory **

My answer :

Chmod 777 ipLAN

./ipLAN

BUt the output is bad interpereter no such file or directory

0 0
Next > < Previous
ReportAnswer #1

save the file name as ipLAN.sh

change the permission to

$chmod 777 ipLAN.sh

now run the script on terminal

$./ipLAN.sh

NOTE: when type ./ipLAN withpout extension it will not recognize the file because the file has extension .sh so give the file name as ./ipLAN.sh

the output of the running script will be look like:

./ipLAN -bash: ./ipLAN: No such file or directory ./ipLAN.sh ping: sendto: No route to host ping: sendto: No route to host pi

Know the answer?
Add Answer of:
1. Install the supplied bash script on the Kali Linux VM BASH filename :ipLAN In text...
Your Answer: Your Name: What's your source?
Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • BASH backup script

    Hello, I'm supposed to create a simple script to backup onto a network using tar and scp -r command as well as the ~.bashrc to designate commands as a part of bash. Iam having trouble making mine work. I would like to ask for input as to what I may be doing wrong. Here it is:!/bin/bash## Directory to back upbackup_dir="/home/directory/homeworkassign"# Error-checking portion of scriptif [ ! -d $backup_dir ]thenecho "The specified backup directory $backup_dir does not exist."echo "Operation canceled."exit 1fi#...

  • Hello I need help creating a bash script for linux as shown below getting the information...

    Hello I need help creating a bash script for linux as shown below getting the information from ifconfig The script must programmatically gather and output the informationEXACTLY AS SHOWN BELOW and (not echo this and echo that). ====================================== Interface: AAA MAC Address: BB:BB:BB:BB:BB:BB IP Address: CCC.CCC.CCC.CCC Subnet Mask: DDD.DDD.DDD.DDD Received Bytes: EEEEEE ====================================== Thanks,

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • LINUX BASH SHELL SCRIPT ***URGENT***

    PLEASE HELP!NEED LINUX SCTIPTWrite a bash shell script that presents work information of employees of a department from a company data set. The bash script file should be called"extract" and should be invocable as$ ./extractfrom the command line. The company data set layout is presented in six data files with the following field descriptions.The script should accept a project number (1/2/3/10/20/30) and output* the name of the project* the name of the manager of the controlling department of the project*...

  • unix bash shell script

    Create a BASH shell script called momoaccording to the following specifications:"# Your script will be used to organize a collection of MP3 files.# Files to be processed are expected to reside in a single directory# (no sub-directories).# Your script, must create subdirectories for each artist and# create symbolic links to each song in appropriate directories.# The script usage will be as follows:# momo source_directory [destination directory]# If the destination directory is not provided, the present working directory# is the destination.#...

  • C shell script

    I am tying to write a C shell script that should create ausers home directory provided that username already exists in apassword file. So for example, if apassword.file contained theentries.fred:no-password::::FredFlintstone:/home/BedRock/fred/bin/tschhomer:no-password::::HomerSimpson:/home/Springfield/hsimpson/bin/tcshSo based on usernames (fred &homer respectively) sortinto file based on the townthey live in.fred---> Bedrockhomer-> Springfield#!/bin/csh -f -xset path =(password.file)# does username exist in password.file?grep ^$1:/password.file > /dev/null2>&1if [ "$?" - eq 0 ]; thenecho "User $1 exists."echo " Add new user based on their home."# here I am suppose...

  • checkfs script define line by line

    Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative tasksuch as checking file systems periodically. With it, I had to take each line and describe in my own terms what each line was doing. I am actually stumped at the momentand could use any guidance or reference in any direction as to how to proceed and successfully finish in defining...

  • CSCI 3619 LAB 1 Create a report file Lastname.lab1docx to save screenshots and notes from the lab. Install VMWare Work...

    CSCI 3619 LAB 1 Create a report file Lastname.lab1docx to save screenshots and notes from the lab. Install VMWare Workstation on your laptop or desktop system. Configure the following VM Guest machines and Install Operating Systems. CX619WS1 = Install Windows Server 2012 R2 from Imagine and enable RDP and enable Web server. CX619UB1= Install Ubuntu current 18.04.1 LTS CX619WT1 = Install Windows 10 from Imagine. CX619KL1 = Install Current Kali Linux 64 Bit Take/paste a screenshot to provide evidence of...

  • I need 5-9 This is for an Intro to Linux/Unix Using PSFTP to download files from to the server Some activities ask you t...

    I need 5-9 This is for an Intro to Linux/Unix Using PSFTP to download files from to the server Some activities ask you to download a file from the server to your computer. Before you download the file from the server you will also have to convert it to ASCII (DOS/WINDOWS). Here are the steps. Login to the server Crete your file using vi You can check your file type with the file command to see what the type information...

  • Explain everything that is happening on line 125 of the script, where the roff2pdf() function is called. (Hint: sort out the function arguments and input/output redirection.) line 125: roff2pdf "$...

    Explain everything that is happening on line 125 of the script, where the roff2pdf() function is called. (Hint: sort out the function arguments and input/output redirection.) line 125: roff2pdf "$OUTPUT_TITLE" < $TMP_FILE_M > $OUTPUT_FILE #1 /bin/sh # Verify that the command line arguments are suitable if [ -z "$1" ] 11 [ $# -gt 2 ]; then echo "Usage: $0 <page> [<section>]" exit 1 1 # util is avail # Check whether a utility is available on the system. #...

Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
Share Your Knowledge

Post an Article
Post an Answer
Post a Question with Answer

Self-promotion: Authors have the chance of a link back to their own personal blogs or social media profile pages.