The Very Basics Flashcards Preview

Linux > The Very Basics > Flashcards

Flashcards in The Very Basics Deck (11)
Loading flashcards...
1

How to add new user?

adduser {user}

2

How to delete user?

del

3

How to change user's password?

passwd

4

How to configure IP address 10.0.80.53/24 on interface ens3?

sudo ip addr add 10.0.80.53/24 dev ens3

 

5

How to configure a default route via 10.0.80.1?

sudo ip route add default via 10.0.80.1

6

How to display status of interfaces?

ip link show

7

How to show configured IP addresses on interfaces?

ip addr show

8

How to shutdown ens3 interface?

sudo ip link set down ens3

9

How to enable ens3 interface?

sudo ip link set up ens3

10

How to remove a configured IP address of 10.0.0.1/24 from interface eth1?

 sudo ip addr del 10.0.0.1/24 dev eth1

11

How to display routing table?

ip route show