SQL Rob

SQL Server and other database technologies

Command Line – Linux

Linux Command Line Commands:

cat : File contents
cat dataFile | code.py : feed data to code module
cd : Change Directory – cd .. = up a level – cd ./Dir = down a level into Dir – cd ~ = Home
clear : clear console
cp : Copy
head -50 fromFile toFile : copy 50 records from fromFile and create toFile
history : list of commands run
ls : list files in current directory
man x : Get help for function x
mkdir : Create directory
mv : Move – Can also rename files
pwd : Current directory
rm : Remove
rmdir : Remove directory

Update:

sudo apt update
sudo apt upgrade