Here is a quick tip on how to display the top largest files and directories within my home directory:
# du -hs /home/adam/* | sort -nr | head
Cheers!
Popularity: 5% [?]
Popularity: 5% [?]
Linux Tips, Tricks, and Opinions
Here is a quick tip on how to display the top largest files and directories within my home directory:
# du -hs /home/adam/* | sort -nr | head
Cheers!
Popularity: 5% [?]
Popularity: 5% [?]
Here is a quick tip on how to run crontab every 5 minutes.
*/5 * * * * /home/adam/script.sh will execute script.sh every 5 minutes.
Also, here’s a quick guide to understaning the layout of cron:
# MIN HOUR DAYOFMONTH MONTH DAYOFWEEK COMMAND
5 * [...]
Popularity: 44% [?]
Here’s a quick tip for finding files over 100M on Linux.
# find /home/adam/ -size +100M -exec ls -lh {} \; | awk ‘{print $5 , $8}’
Note that if you change 100M in the command you can find files with any size. Also, replace /home/adam with any directory you wish.
Popularity: 7% [?]
Popularity: 7% [?]
As an iPod owner and Linux user, there are a few options I have on Linux for managing my iPod music library. In my opinion, the best option available is gtkpod. One great option of gtkpod is the ability to backup your iPod music to your hard drive for free. The purpose [...]
Popularity: 12% [?]
Heres a quick tip on how to find out what ports are open on your Linux computer without using a port scanner.
# netstat -anp –tcp –udp | grep LISTEN
Cheers!
Popularity: 13% [?]
Popularity: 13% [?]
Here is how to change the PostgreSQL root password from the Linux command line. Replace “root” with any user name to change any password. It is important to note that PostgreSQL does not have an actual “root” user name. The “postgres” user is the super-user for PostgreSQL.
# su postgres
# psql -d template1
template1=# ALTER [...]
Popularity: 22% [?]
Here is how to change the mysql root password from the Linux command line. Replace “root” with any user name to change any mysql user password.
Change MySQL Password
# /etc/init.d/mysql stop
# mysqld –skip-grant-tables
# mysqladmin -u root password ‘newpasswd’
# /etc/init.d/mysql start
Cheers!
Popularity: 6% [?]
Popularity: 6% [?]
If you are a hard core systems administrator or Linux engineer you’ll probably recognize most of these Linux command line tricks. The following Linux command line tips are not typically used by your everyday Linux user.
Quickly Find a PID with pgrep
pgrep looks through the currently running processes and lists the process IDs which matches [...]
Popularity: 43% [?]
The Wired How-To Wiki has some great tips on how to speed up Linux.
Most of the tips covered in this article involve using the command line and editing system files. Therefore, it goes without saying that you should be fairly comfortable with your command line skills before attempting any of these tweaks. However, if you’re [...]
Popularity: 4% [?]
The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password.
Example:
adam@desktop:~$ sudo chage -l adam
Last password change [...]
Popularity: 4% [?]