Hi i am Oni Dev, Student of Software Development.
I am a student of Civil engineering in Computing and Informatics from the North Catholic University.
Currently learning Software Development by myself to increase my opportunities.
Hi i am Oni Dev, Student of Software Development.
I am a student of Civil engineering in Computing and Informatics from the North Catholic University.
Currently learning Software Development by myself to increase my opportunities.
New To Programming ? Don’t worry , learn from harvard free programming course with game,web ,android , ios specialization.
hostnamectl set-hostname example.com
hostnamectl restart systemd-hostnamed
yum -y install epel-release
Variable is a label for a location in memory . Variable make us easy to understand as programmer.
Python has five standard data types −
Let’s take a look on each of them.
Continue readingIn this bootcamp , we will look into how to get output from system call command and assign it to variable for later processing or output presentation.
We will use subprocess library
Continue readingRegex Basics | Description |
---|---|
^ | The start of a string |
$ | The end of a string |
. | Wildcard which matches any character, except newline (n). |
| | Matches a specific character or group of characters on either side (e.g. a|b corresponds to a or b) |
Used to escape a special character | |
a | The character “a” |
ab | The string “ab” |
In this tutorial fast boot camp for python for system admin , we will look into how to open , edit file and use regular expression for quickly replace text . useful for system admin.
Mode | Description |
---|---|
‘r’ | This is the default mode. It Opens file for reading. |
‘w’ | This Mode Opens file for writing. If file does not exist, it creates a new file. If file exists it truncates the file. |
‘x’ | Creates a new file. If file already exists, the operation fails. |
‘a’ | Open file in append mode. If file does not exist, it creates a new file. |
‘t’ | This is the default mode. It opens in text mode. |
‘b’ | This opens in binary mode. |
‘+’ | This will open a file for reading and writing (updating) |