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 x: Change to Directory x – cd .. = up a level – cd ./x = down a level into x – cd ~ = Home
clear : clear console
cp x newName: Copy file x – Option to name it newName
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 x : Create directory x
mv x location: Move file x to location – Can also rename files
pwd : Current directory
rm x : Remove file x
rmdir x : Remove directory x

Update:

sudo apt update
sudo apt upgrade