💡 Quick Linux Tip #28
Want to check if a service is actually running?
Try:
systemctl status nginx
Replace nginx with the name of the service you want to check.
Examples:
systemctl status ssh
systemctl status apache2
systemctl status mysql
Linux will show whether the service is active (running), inactive (stopped), or failed. It also shows recent log messages related to that service.
Follow @tecmint for more #LinuxTips
💡 Quick Linux Tip #30
Can't remember where a file is saved?
Use:
locate notes.txt
This searches your system for files named notes.txt. You can replace notes.txt with any file name, for example:
locate report.pdf
locate config.php
locate photo.jpg
Instead of searching the entire disk every time, locate uses a database to find files much faster.
If you get "locate: command not found", the locate package isn't installed. Install plocate or mlocate first.
If locate is installed but doesn't find a file you know exists, update its database:
sudo updatedb
Then try the locate command again.
Follow @tecmint for more #LinuxTips
💡 Quick Linux Tip #27
Want to see what's inside a ZIP file before extracting it?
Use:
unzip -l <foldername>
Example:
unzip -l https://t.co/FvlIZGMdpT
The `-l` option lists the contents of a ZIP file without extracting it.
This is useful when:
✅ You want to check what's inside before extracting
✅ The ZIP file is very large
✅ You're looking for a specific file
✅ You want to verify the contents of a download
No files are extracted or modified; Linux simply shows you what's inside the archive.
Follow @tecmint for more #LinuxTips
💡 Quick Linux Tip #29
Too many log messages and looking for errors?
Try:
journalctl -p err -b
This shows only error messages from the current system boot. Instead of scrolling through thousands of log entries, Linux shows only the errors.
Here:
-p err = show only error messages
-b = show logs from the current boot
Follow @tecmint for more #LinuxTips
💡Quick Linux Tip #22
You accidentally deleted something and want to know what was removed recently.
Run:
find ~/ -type f -mtime -1
This shows files that were modified in the last day.
While it won't recover deleted files, it can help you identify recent changes and missing files.
It's often useful when troubleshooting user mistakes.
Follow @tecmint for more #Linux tips
💡 Quick Linux Tip #20
You edited a config file yesterday, but now you can't remember which one.
Try this:
find /etc -type f -mtime -1
This shows files inside /etc that were changed in the last 24 hours.
Instead of checking every configuration file, Linux helps you find the recently modified ones.
The -mtime -1 part means "changed within the last day."
Follow @tecmint for more #Linux tips
💡 Quick Linux Tip #19
Your disk is almost full, but you can't figure out which folder is taking up all the space.
Here's a quick command:
du -sh * | sort -hr
This shows the size of each folder in your current directory.
Instead of opening folders one by one, Linux sorts them from largest to smallest.
The biggest folders appear at the top, making it easy to spot what's using your storage.
Follow @tecmint for more #Linux tips
💡 Quick Linux Tip #17
Need to see live system performance without installing anything?
Use:
$ top
This shows real-time CPU usage, memory usage, and running processes.
Useful shortcuts while top is running:
Press P to sort processes by CPU usage
Press M to sort processes by memory usage
Press q to quit
If you want a cleaner and more interactive view, try:
$ htop
This provides a more user-friendly way to monitor CPU, memory, load averages, and running processes in real time.
Follow @tecmint for more #Linux tips
Quick Linux Tip #12
Ever wondered which files were changed on your system recently?
Here’s a simple way to check it in Linux:
find /etc -type f -mtime -30
This shows all files inside /etc that were modified in the last 30 days.
So instead of opening files one by one, Linux quickly shows you what changed.
The -type f part means it will only show files (not folders), and -mtime -30 means “modified less than 30 days ago”.
Follow @tecmint for more #Linux tips
Quick Linux Tip #10
Need to run a command that keeps running even after you close your SSH session?
Use:
$ nohup <command> &
It detaches the process from your terminal so it keeps running after logout and writes output to nohup.out by default.
The & sends it to the background so your shell stays usable while the job runs.
This saves you every time a long-running script dies because your VPN dropped mid-session.
Follow @tecmint for more #Linux tips
Quick Linux Tip #9
Need to test if a remote port is open without installing telnet or nmap?
Use:
$ nc -zv <host> <port>
It attempts to connect to the target host and port, then immediately tells you whether it succeeded or was refused.
The -z flag scans without sending data, and -v gives you a readable result instead of silence.
Works across firewalls, VPNs, and cloud security groups wherever nc is available, which is most Linux systems by default.
Follow @tecmint for more #Linux tips
@yoyo308 Linux Mint 22.1 para que te deje instalar el driver wifi y luego lo actualizas a 22.3 ya que si pones 22.3 desde un inicio, el driver wifi esta roto y no funcionará.
🐧 10 comandos Linux que separan al pentester del script-kiddie:
ss -tulpn
nmap -sV -sC
tcpdump -i any
find / -perm -4000
curl -s https://t.co/7gxkI80lb4
lsof -i :4444
dig axfr
history | grep
rlwrap nc -lvnp
iptables -L -n -v
Más allá de ls y cat. ¿Cuál falta?
#linux#commands