0% found this document useful (0 votes)
201 views

Useful NEW Linux Commands Ref F - Part XXXXXI

The document provides information on various Linux commands for network monitoring, firewall management, port scanning, file transfer, and user/group administration. It lists the ping, traceroute6, netstat, iptables, and nmap commands for checking network connectivity and scanning open ports. Netcat is described for listening on ports, piping commands over the network, and streaming compressed files. The chown, chmod, adduser, and usermod commands are also included for changing file ownership, permissions, and user properties.

Uploaded by

Obscure Mask
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
201 views

Useful NEW Linux Commands Ref F - Part XXXXXI

The document provides information on various Linux commands for network monitoring, firewall management, port scanning, file transfer, and user/group administration. It lists the ping, traceroute6, netstat, iptables, and nmap commands for checking network connectivity and scanning open ports. Netcat is described for listening on ports, piping commands over the network, and streaming compressed files. The chown, chmod, adduser, and usermod commands are also included for changing file ownership, permissions, and user properties.

Uploaded by

Obscure Mask
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Useful NEW Linux Commands Ref F – Part XXXVXXI

# Check to see if target is online and responding

ping ip_address

# View network route to target:

traceroute6 ip_address
Useful Linux Commands – Part ZMVXXVIII

# Check to see if target is online and responding

ping ip_address

# View network route to target:

traceroute6 ip_address

# Network Monitor

netstat

# Manage standard linux firewall (advanced users only)

iptables

# Scan this machine to check for open ports:

nmap 127.0.0.1

***** netcat:

# Listen for input from network on recieving_port, dump it to a file (insecure, but handy):
# Network Monitor

netstat

# Manage standard linux firewall (advanced users only)

iptables

# Scan this machine to check for open ports:

nmap 127.0.0.1

***** netcat:

# Listen for input from network on recieving_port, dump it to a file (insecure, but handy):

netcat -l recieving_port > file_copied

# Pipe the output of a command to a target ip and port over the network:

command | netcat -w number_of_seconds_before_timeout target_ip target_port

# Use tar to compress and output a file as a stream, pipe it to a target ip and port over the network:

sudo tar -czf - filename | netcat -w number_of_seconds_before_timeout target_ip target_port


**** Users and Groups:

# Change owner of a file or directory:

chown user_name:group_name directory_name

# Change privileges over file or directory (see man page for details.)

chmod

# Create a new user:

adduser

# Change user privileges (be very careful with this one):

usermod

You might also like