Linux Lecture4
Linux Lecture4
arp This program lets the user read or modify their arp
cache.
dig Send domain name query packets to name servers
for debugging or testing.
finger Display information about the system users. Ex:
finger Deepak
ftp File transfer program. (ftp <remote system name/ip)
ifconfig Configure a network interface. Ex:
ifconfig eth0 172.31.2.2 netmask 255.255.0.0
ifdown Shutdown a network interface. Ex: ifdown eth0
ifup Brings a network interface up. Ex: ifup eth0
Linux Commands
Configuration SSH
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
sudo chmod a-w /etc/ssh/sshd_config.original
Modify sshd_config
PubkeyAuthentication yes
Restart the sshd server application
sudo /etc/init.d/ssh restart
SSH from local machine
Ssh username@remote-machine
Linux Commands
System Time
cal Calendar. (cal, cal 2005)
date Print or set the system date and time. (date, date
MMDDhhmm[[CC]YY][.ss])
hwclock Set or read the hardware CMOS clock.
uptime Reports how long the system has been running.
Linux Commands