Using unix command ‘du’, disk usage
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 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 ———-
I needed to find and get a webpage’s img src url links. I wanted to do this with a script on a regular basis. The solution I found was to
Extract img url links from HTML document Read More »
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 »
Search for information from a ldap server: Log in to server with: ssh servernavn Then type the command: ldapsearch -x -H ldap://ldapservername.uib.no uid=userid ldapsearch -x -H ldap://ldapservername.uib.no departmentnumber=XXXXXX where XXXXXX
Tested out Google Custom Search (beware of ads…) http://folk.uib.no/mihho/search A search will give results from all open web-content at University of Bergen. Similar to search on Google with: site:uib.no searchword
My name is Helge, and I work at the IT department at the University of Bergen. My UiB profile: http://www.uib.no/persons/Helge.Opedal My IT dept profile: https://it.uib.no/en/User:Mihho My norwegian IT dept profile: https://it.uib.no/User:Mihho