This list of Linux commands should provide you with a more comprehensive understanding of the tools available for various tasks in the Linux environment.
- Ping Host
- Get whois for domain
- Get DNS for domain
- Reserve loockup host
- Outputs the webpage from url
- Connect at host as user
- Display network interfaces and their configuration
- Display active network connections
- Download a file from the internet
- Transfer files via FTP
- List files and directories
- Create a new directory
- Remove a directory
- Copy a file
- Move a file
- Delete a file
- Display the contents of a file
- Display system information
- Check disk usage
- Check memory usage
- Display running processes
- Show the history of commands
- Compress a file using gzip
- Decompress a gzip file
- Create a tarball archive
- Extract a tarball archive
- Change the current directory
- Go to the users home directory
- Go back to the previous directory
- List files and directories with details
- List all files including hidden files
- Display the first few lines of a file
- Display the last few lines of a file
- Sort lines of a text file
- Count words, lines, and characters in a file
- Replace text in a file
- Shutdown the system
- Reboot the system
- Display disk usage by directory
- Display the current date and time
- Display the systems uptime
- Change the owner of a file or directory
- Change the group ownership of a file or directory
- Schedule a command to run at a specific time using at
- Schedule a recurring command using cron
- View system logs
- Display the list of installed packages
- Install a package using apt-get
- Update the package list
- Upgrade installed packages
- Remove a package
ping example.com
whois example.com
dig example.com
dig -x 192.168.1.1
curl example.com
ifconfig
netstat
wget http://example.com/file_name
ftp ftp.example.com
chown -R www-data:www-data /var/www/example.com
chmod 755 /path/to/directory
ls
mkdir new_directory
rmdir directory_name
cp source_file destination
mv source_file destination
rm file_name
cat file_name
adduser new_username
deluser username
passwd username
uname -a
df -h
free -h
top
history
gzip file_name
gunzip file_name.gz
tar -cvzf archive_name.tar.gz directory_name
tar -xvzf archive_name.tar.gz
cd /path/to/directory
cd ~
cd -
ls -l
List all files including hidden files
ls -a
find /path/to/start -name "file_name"
grep "search_text" /path/to/files/*
head file_name
tail file_name
sort file_name
wc file_name
sed 's/old_text/new_text/g' input_file > output_file
shutdown -h now
reboot
du -sh /path/to/directory
date
uptime
chown new_owner /path/to/file_or_directory
chgrp new_group /path/to/file_or_directory
echo "command" | at 3:00pm
crontab -e
less /var/log/syslog
dpkg --list
sudo apt-get install package_name
sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove package_name
Generate a new SSH key pair (using RSA with 4096 bits)
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub
sudo update-alternatives --config php
This repository is unlicense[d], so feel free to fork.