Вы находитесь на странице: 1из 23

BAB2

IP ADDR SHOW

The output of the ip command, showing ntwork interface and address assignments.

In this,we see two network interfaces listed. The first , lo,is the local loopback adapter. The second
listing, eth0,is the wired interface. Given this output, you can deduce that there is a network cable
plugged in (eth0 has an IP address)

CAT /ETC/NSSWITCH.CONF |GREP HOSTS


/etc/nsswitch.conf use to make the ultimate determination on the order in which
host resolution occurs.

Here, we can see the system is set up to check files first, which represents local files, which
include/etc/hosts. If the search is for a local domain and it is not foun, the NOTFOUND=return entry
causes the remainder of the search to abort
/SBIN/IFCONFIG

The output of the ifconfig command

Here, we can see statistic for both the internal wired connection (eth0) as well as the loopback
adapter(lo). We see HWaddr, which is the MAC address of the network card. We also have inet addr,
which is the IP address that the card was provided by the DHCP server. We also can see the subnet
mask, mask,which is 255.255.255.0 in this case.
PING 192.168.140.31

Network connected to 192.168.140.31

We get this 192.168.140.31 network connection so that means that we have a network connection.
Ping ww.upsi.edu.my

Network connected to www.upsi.edu.my

Ping ww.upsi.edu.my

We get this www.upsi.edu.my network connection so that means that we have a network
connection.
Ping c 4 www.upsi.edu.my

Ping c 4 www.upsi.edu.my

Ping c is used to have ping stop after certain number of tries, so we have use 4 for four attempt and
stop the ping, and then report some basic statistics to you.
IP ADDR SHOW (IPROUTE2)

The output from the ip show command

The information reported is mostly the same ,though the layout is abit different. For example,one
different is that you dont see the number of packets sent aand received ,nor an error count (by
default). In the past, the following command would show the IP addresses in use as well as sent and
received packets.
IP S ADDR SHOW (iproute2)

The output of the ip addr show command with the s flag added

Recent version of the iproute2 suite dont seem to show this information anymore (despite adding
the s swwitch)
Network Manager

The network manager is running so we will see this output. The machine uses network manager, so
there is no configuration for eth0 or wlan0 stored in /etc/network/interfaces.
APTITUDE NETWORK

If install it will list down down as folowing


BAB3

OPEN SSH

To check whether the ssh server package is installed on debain system


GREP SSHD

To check whether the sshd service is running


STATUS SSH

To check the status of ssh service


INSTALL OPEN SSH

This command is type when ssh is not install in your system


STATUS SSHD

Check back the status of ssh


INET

Using ifconfig eth0 down and up to find inet

View Download image


Install mosh (mobile shell)
MOSH

BAB5

INSTALL HTOP IOTOP

To install distributions package manager


DF -H

Using df h to check used space in storage

Using h with df is easier way to read for most people, as it will show used space in MB and GB
BAB7

INSTALL APACHE 2

Installing Apache from package manager

Its all about how you install the Apache properly from your package manager. Apaches daemon is
now present with default set of configuration files.
STATUS APACHE2

Apache 2 is now active(running)


Apache2 is now connected with the browser

Starting the Apache2 daemon

Now Apache2 successfully running

Вам также может понравиться