Linux Commands Introduction, Compiling and running C, C++ code , scp, ssh

Опубликовано: 25 Март 2026
на канале: Gaith AlBadarin
718
8

This is an introduction to Linux operating system, some common commands, networking commands, Writing and running C and C++ programs, SSH, SCP.
This is really useful for any one that is interested in Networking, Security, Linux, C and C++ programming.

Common Linux commands:

pwd → Pathname working directory
who [options] → Display who is logged on
whoami
id
users
hostname
uname → Dispaly system information
mkdir [ directory name]→ Create a new directory
cd /directorypath→ Change directory
ls → List all files and directories in the current directory
man [command]→ manual
cat [file name ] → Display files content
nano → editor
pico → editor
gedit → editornan
vi
mv → Move file to another folder or directory
cp [options] source destination→ Copy files and directories
clear → Clear the command line
locate [file name]→ Find a file or folder
grep [options] pattern [filesname] search files or output for a apttern
less [options] [filename]
rm → Remove file
never use rm -rf recursive force it will wipe your entire hard drive clean
rmdir → Remove directory
date [option] → Display system date and time
cal → Dispaly calender
ps [options] → Processes status
top → Display resource been used – press q to Quit
kill [options] pid → Stop a process
apt-get install
scp source_file_name username@destination_host:destination_folder
-p -C -r
ssh [options] user@machine → Remotely log in to another Linux machine
su [options] [user [arguments]] → Switch user
echo → display a message on the screen
traceroute → Trace route to host
Gaith Albadarin