Skip to content

Francesco Ficarola

Minimal website with a mess of tips for more expert users…

  • Posts
  • About
  • Contact
  • Research
  • Privacy
  • Contribute

Month: November 2017

Posted on November 23, 2017November 23, 2017

[LINUX] Bash bad interpreter error

If you happen to occur in the following error:

/bin/bash^M: bad interpreter: No such file or directory

your bash script likely includes a carriage return (\r) – Windows style – as well as a line feed (\n).

So, delete all carriage returns within the script:

~$ sed -i -e 's/\r$//' <script_name>.sh

Share this:

  • Share
  • Facebook
  • LinkedIn
  • Twitter
  • Telegram
  • WhatsApp
Posted on November 23, 2017

[LINUX] Color your Debian shell

Append the following strings in /etc/bash.bashrc to color your Debian shell:

export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'

Share this:

  • Share
  • Facebook
  • LinkedIn
  • Twitter
  • Telegram
  • WhatsApp

Recent Posts

  • [LINUX] Install SSL certificates on Apache
  • [INTEL] Useful tools for cyber and intelligence cases
  • [Check Point] Search for AD users in Access Roles
  • [Check Point] Automated IP Blacklist v2
  • [Threat Intelligence] Sapienza Blacklists

Categories

  • Applications
  • Cyber Security
  • Hacking
  • Intelligence
  • Linux
  • Programming
  • Web

Archives

  • May 2022
  • March 2022
  • August 2021
  • February 2021
  • September 2020
  • August 2020
  • January 2020
  • July 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017

Tags

  • active directory
  • amule
  • apache
  • apt
  • archive
  • audit
  • backup
  • bash
  • bitcoin
  • blacklist
  • blocklist
  • Certificates
  • check point
  • color
  • cyber
  • cybersecurity
  • data breach
  • feed
  • firewall
  • hack
  • hacking
  • htaccess
  • identity awareness
  • indexing
  • intelligence
  • keyboard
  • ldap
  • linux
  • malicious
  • malware
  • monitoring
  • multiple
  • osint
  • password
  • payment
  • performance
  • permissions
  • regex
  • regular expression
  • sharing
  • shell
  • SSL
  • tools
  • videos
  • zip

About

Francesco Ficarola is the founder of this minimal website with a mess of tips for more expert users.

He is a Cyber Security Expert working on different technologies such as SIEM, Firewall and Threat Intellingence products (more info here). 🙂

Follow me on Twitter

My Tweets
  • Posts
  • About
  • Contact
  • Research
  • Privacy
  • Contribute

Social

  • View f_ficarola’s profile on Twitter
  • View francescoficarola’s profile on LinkedIn
  • View francesco-ficarola’s profile on GitHub
  • View FrancescoFicarola’s profile on Google+
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Proudly powered by WordPress