Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Basic Linux Commands
Command | Arguments | Description |
---|---|---|
cal | Displays the calendar | |
cat | Shows the contents of a file or merges files | |
cd | Change the directory | |
Command | Arguments | Description |
cp | -R | -r copy directories recursively |
cp | Copy files and directories | |
date | Displays the date and time | |
df | -hT | Disk space allocation with (-h) "human readable" numbers and (-T) file system |
df | Report file system disk space usage | |
echo | Display a line of text | |
hostnamectl | Can be used to query and change the system's computer name and associated settings | |
less | Displays the contents of a file page by page (With additional functions like the search) | |
ln | -s | Make symbolic links instead of hard links |
ln | Create symbolic and hard links | |
lsblk | Lists information about all available or the specified block devices | |
lscpu | Displays information about the CPU architecture | |
lspci | Detailed information about the PCI devices and buses in the system | |
lsusb | Displays the USB devices | |
ls | -a | Displays everything even hidden files |
ls | -l | Long Listing |
ls | List a folder content | |
mkdir | Create the Directory(ies), if they do not already exist | |
more | Displays the contents of a file page by page | |
mv | Move (or rename) files | |
paste | Merge lines of files | |
pwd | Output of the current working path | |
rmdir | Remove empty (must be empty) directories => if not use rm -rf | |
rm | -f | -f is for force, execute the command either way |
rm | -i * | * means delete all files, with -i prompt before every removal |
rm | -r | Remove directories and their contents recursively |
rm | -v | -v is for verbose, explain what is being done |
rm | Remove files or directories | |
stat | Display file or file system status | |
touch | Update the access and modification times of each file to the current time. If the file does not exist, one will be created | |
uname | -a | -a for all info |
uname | Displays the OS | |
uptime | -p | -p stands for "pretty" |
uptime | Incl. CPU utilization 1min, 5min and 15min |
Add Comment
Please, Sign In to add comment