•powershell Compress-Archive –LiteralPath lab8 –DestinationPath lab8.zip
•powershell Expand-Archive –LiteralPath lab8.zip –DestinationPath “C:\mypath” -Force
Dec 08
•powershell Compress-Archive –LiteralPath lab8 –DestinationPath lab8.zip
•powershell Expand-Archive –LiteralPath lab8.zip –DestinationPath “C:\mypath” -Force
Dec 08
Signed Integers
egrep ‘^[+-]?[0-9]+$’ data.txt
Floating Point Numbers
egrep ‘^[+-]?[0-9]+[.]?[0-9]*$’ data.txt
Canadian Postal Code
egrep -q ‘^[A-Z][0-9][A-Z] *[0-9][A-Z][0-9]$’ info.txt
Dec 08
df command – Shows the amount of disk space used and available on Linux file systems.
du command – Display the amount of disk space used by the specified files and for each subdirectory.
free command
top or htop command
vmstat command
dmidecode command
/proc/meminfo file
Linux commands show all running processes
Apart from ps command, you can also use the following commands to display info about processes on Linux operating systems:
top command : Display and update sorted information about Linux processes.
atop command : Advanced System & Process Monitor for Linux.
htop command : Interactive process viewer in Linux.
pgrep command : Look up or signal processes based on name and other attributes.
pstree command : Display a tree of processes.
Dec 08
cut -d “:” -f 1,3 /etc/passwd
echo $aLine | cut -d “:” -f 1,3
cat /etc/passwd | cut -d “:” -f1,3
Dec 08
Word Replace
sed ‘s/root/amrood/’
sed ‘s/root/amrood/g’
sed ‘s/root/amrood/’ | grep root
sed ‘s/root/amrood/g’ | grep root
cat /etc/passwd | sed ‘s/root//g’
Delete Lines in the Output
cat /etc/passwd | sed ‘1, 5d’ |more
cat /etc/passwd | head
cat /etc/passwd | sed ‘1d’ | head
cat /etc/passwd | grep ‘sh$’
cat /etc/passwd | sed ‘/sh$/d’
Print:
cat /etc/passwd | sed -n ‘/root/p’
Dec 04
import os
import pandas as pd
import math
import stellargraph as sg
from stellargraph import StellarGraph
from stellargraph.layer import DeepGraphCNN
from stellargraph.mapper import FullBatchNodeGenerator
from stellargraph.mapper import PaddedGraphGenerator
from stellargraph.layer import GCN
from tensorflow.keras import layers, optimizers, losses, metrics, Model
from sklearn import preprocessing, model_selection
from IPython.display import display, HTML
import matplotlib.pyplot as plt
%matplotlib inline
from tensorflow.keras.layers import Dense, Conv1D, MaxPool1D, Dropout, Flatten
from tensorflow import keras
import numpy as np
import networkx as nx