Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Command for turning on/off network in Centos 8

-First check your ens number


$ ifconfig


-To turn on network


$ sudo nmcli con up ens33


-Above '33' is my ens number

-To turn of network


$ sudo nmcli con down ens33


-To check if you have network connection


$ ping 8.8.8.8


-This goes on forever, press Ctrl+c to exit.
Comment

PREVIOUS NEXT
Code Example
Shell :: mac finder quick preview for markdown 
Shell :: ansible remove part of line 
Shell :: docker port entered blocking state 
Shell :: rollup emotion 
Shell :: git how to correct accidental commit of password 
Shell :: py pip install error winerror the system cannot find the .exe.deleteme 
Shell :: nginx server missing webmin 
Shell :: git: Download specific commit from git repository : remote 
Shell :: berew install skype 
Shell :: read (subshell_pty...): No such file or directory (2) 
Shell :: linux iw delete interface 
Shell :: Installing nano on Debian/Ubuntu machines 
Shell :: how to find which options a command supports in linux 
Shell :: how to safely clean snaps folder in ubuntu 
Shell :: install gasreporter 
Shell :: installing choclatey no adminstrative rights 
Shell :: digit to bytes 
Shell :: openfoam for ubuntu 
Shell :: Update VS Code from Microsoft Repository 
Shell :: eslint script in package.json 
Shell :: rename file with terminal 
Shell :: command to convert standard input to arguments for a piped command 
Shell :: composer command to install vendor in magento 2 
Shell :: arch symlink 
Shell :: global menu cinnamon 
Shell :: retrieve column from csv unix 
Shell :: fish function to change php version .env 
Shell :: delete 1st row csv for hive table 
Shell :: nohup server stop in python django 
Shell :: wp scan website 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =