Find your files
In Linux you can use the command ‘find’ to find files and folders and then also do something with them on your system. Find all files that ends with the […]
In Linux you can use the command ‘find’ to find files and folders and then also do something with them on your system. Find all files that ends with the […]
We wanted to upload some .bib and .tex files to one of our blogs. But, we got this error message: “Sorry, this file type is not permitted for security reasons.”
Uploading files to WordPress blog Read More »
Git is a tool that can help you track changes in your files, specially when you share your files with your friends on a Linux server. Here is a very
Sometimes you like to know which folders are using up all your space on your Linux server. This command will sum up the disk usage per folder, and print the
Using unix command ‘du’, disk usage Read More »
Sometimes one need to send an email from Linux (automated messages, warnings and so on). The problem is that the content looks strange when received by the email clients. The
Emails from Linux with æ, ø and å Read More »
The unix ‘mutt’ command can be used to send an email with attachment: mutt -s “Test message” name@something -a files.tar < message.txt where files.tar is the attached file, and message.txt
Use ‘mutt’ to send email with attachment Read More »
I’ve wrote a simple bash script to dump databases from a Postgresql database server which uses the pg_dump and pg_dumpall. [bash] #!/bin/bash ## This scripts dumps all the databases in
Postgresql database bash dump script Read More »
Create a tar file of files located in a folder: tar -cvf filname.tar foldername/ where: c = create v = verbose f = file filname.tar = the created file ———-
We needed to collect “Place” information per user from our LDAP server. The problem was that the description of the “Place” came out strangely encoded whenever it contained one of
ldapsearch users and places that contains æ, ø and å Read More »