-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice.sh
More file actions
executable file
·37 lines (25 loc) · 837 Bytes
/
practice.sh
File metadata and controls
executable file
·37 lines (25 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
ip a
echo 'ip'
echo '------------------------------------------------'
ip route | grep default
echo '___________________________________________________'
ss -tulpn
echo '-------------------------------------------------'
#for ip in {1..10} do
# ping -c1 -W1 192.168.1.$ip &>/dev/null && echo 'UP: 192.168.168.1.$ip'
#done
echo '------------------------------------------------'
traceroute google.com
echo 'Check who can connect to mechin (Active connections
'
echo "This is a practice Think"
echo'-------------------------------------------------------'
name='mE'
age=25
echo "Name is $name and Age is $age"
echo '---------------------------------------------------'
echo "Enter your name"
read username
echo "welcome, $username and age is$age"
echo '------------------------------------------------------'