Etiquetes » Bash

Cygwin : $'\r': command not found

If you are trying to execute some shell script using Cygwin and getting the error

$’\r': command not found

that means, shell is not able to read carriage return properly. 50 more words

Bash

Perintah-perintah ubuntu

n@zz:~$ echo $shell

n@zz:~$ echo $SHELL
/bin/bash
n@zz:~$ whoami
n
n@zz:~$ pwd
/home/n
n@zz:~$

n@zz:~$ gnome-terminal –tab –tab –tab

n@zz:~$ gnome-terminal –geometry 80×20
(terminal 80 karakter dan 20 baris) 1.421 more words

Bash

Back and forth with variables over SSH

A n00b mistake which turns out into a PITA is when we work with ssh and try to evaluate remotely some variables declared locally and included into a remote sh line. 227 more words

Development

Want to use Nano seriously?

If so, here’s how I execute it (and why):

$ nano -r 79 -T 4 -E

First, the -r 79 is the “wrap lines at XX.” My screen maxes out at 80 columns so I make sure everything wraps there with a small buffer of one column. 66 more words

Foreground and background (boy you turn me)

I’m sure Diana Ross would have named so her song, had she been a huge *nix fun.

What are we talking about? Job control. It’s simple if you already know it, but today I learnt some people didn’t know about putting shell jobs in background or restoring them in foreground. 259 more words

Everyday

since: Stateful Tail

“since is a unix utility similar to tail. Unlike tail, since only shows the lines appended since the last time. It is useful to monitor growing log files…” 6 more words

Programming

mysql show create table output to file

show table creation to file :)

Bismillah

q> Langsung saja

mysql -uroot -p auto_email -e "show create table tutorial\G " > /home/saifi/Desktop/testt.sql

Alhamdulillah

Linuxmint