Skip to content

Twopenguins.it

Here is what i forgot.

Tag: bash

Bash doesn’t like filename with spaces

So in our loop we use it like a string

for file in *.txt; do mv "$file" /tmp/; done

Author simplexPosted on June 11, 2011July 22, 2011Categories LinuxTags bash, scriptLeave a comment on Bash doesn’t like filename with spaces

bash cgi: malformed header from script. Bad header=<html>

Look if you have a \n somewhere:

echo "Content-Type: text/html\n\n"

Substitute it with:

echo "Content-Type: text/html"
echo ""
echo ""

Author simplexPosted on April 6, 2011April 6, 2011Categories Interwebz, LinuxTags bash, cgiLeave a comment on bash cgi: malformed header from script. Bad header=<html>

FreeBSD: change user’s shell

To change your shell in FreeBSD type:
chsh -s /usr/local/bin/bash
To change an user’s shell from root:
pw usermod $username -s /usr/local/bin/bash

Author simplexPosted on March 11, 2011Categories BSDTags bash, freebsd, shellLeave a comment on FreeBSD: change user’s shell

Delete/clear bash history

Simply do:

rm ~/.bash_history

and clear the history library data in mem with:

history -c

Author simplexPosted on November 6, 2010March 14, 2011Categories BSD, SlackwareTags bash, historyLeave a comment on Delete/clear bash history

Categories

  • BSD
  • Hacks
  • Homebrewing
  • Interwebz
  • Linux
  • Other
  • SAP
  • Slackware
  • Uncategorized
  • Windows

Tags

  • amarillo
  • apa
  • apache
  • audio
  • backup
  • bash
  • bob
  • cascade
  • centos
  • cgi
  • church of cubgenius
  • cyanogenmod
  • dryhop
  • find
  • freebsd
  • freenas
  • git
  • google
  • google chrome
  • google chrome os
  • hotkeys
  • hp
  • mailgraph
  • microsoft
  • monitoring
  • mysql
  • notebook
  • patrick volkerding
  • postfix
  • reset password
  • rsync
  • Samsung Galaxy S4
  • shell
  • simcoe
  • Slackware
  • squirrelmail
  • ssh
  • ssl
  • sudo
  • symon
  • symux
  • syweb
  • virtualhosts
  • zabbix
  • zabbix server
Twopenguins.it Proudly powered by WordPress
Utilizziamo i cookie per essere sicuri che tu possa avere la migliore esperienza sul nostro sito. Se continui ad utilizzare questo sito noi assumiamo che tu ne sia felice.Ok Reject Read More
Privacy & Cookies Policy

Necessary Always Enabled