Discover and read the best of Twitter Threads about #Bash

Most recents (14)

Translation—Government is A complete pile of poo & what all of this is REALLY about is NONE OF IT MATTERS to most because MOST only care about Government or money.
Light & Dark coming together UNITED as 1 against the common enemy …

God & Lu work side by side, the FALLEN
Are rising alongside of God & Lu …
Most have absolutely no clue what is really going on, why it’s happening as it is & continues feeding into all of what isn’t real ..
It’s blinding many from seeing beyond what everyone is being shown, because so much is being
Shown every single day BEYOND face value.

Basically DJT & everyone else is/HAS BEEN (for years) SHOWING God & Lu are the ones in control of EVERYTHING … Those who know, no matter which “side” (there are no sides or drawn lines) you think others are on, none of it should be
Read 41 tweets
🎉 The second edition of Data Science at the Command Line is out! 🎉

You can read the entire book for free at

It took a good year to rewrite and expand the first edition, so I'd like to say a few things. 🧵 Jeroen holds a physical cop...
First of all, many thanks to @OReillyMedia for allowing me to make the book available for free under a CC BY-ND license. You can, of course, also buy a physical copy from your favorite bookstore. A screenshot of the homepag...
I'm grateful for all the help I've received. Most notably my editors @JessHaberman @GreyEditing Kate Galloway and my reviewers Aaditya Maruthi @bde @beeonaposy @juliasilge @mikedewar @reustle. The acknowledgements lists many others, without whom, I couldn't have pulled this off. A screenshot of the acknowl...
Read 22 tweets
[THREAD] #Linux a 30 ans aujourd'hui 🥳🐧
Il y a 30 ans, un fringuant jeune homme, Linus Torvalds, ingénieur de son état, envoyait un mail sur un newsgroup qui allait secouer durablement Internet.
L'objet du délit s'appelle #Minix, un proof of concept assez avancé d'un début de système d'exploitation, et surtout, un noyau logiciel pour lequel il explique alors avoir déjà porté l'interpréteur de commandes #Bash et le compilateur #GCC que nous utilisons encore, 30 ans après.
Read 13 tweets
An interesting summary of an interview with Yukihiro Matsumoto, the creator of #Ruby programming language about ‘What’s a Perfect Programming Language ‘

🧵 A Thread for 🧵

#CodeNewbies #100DaysOfCode
(Yukihiro Matsumoto):

Language designers want to design the perfect language. They want to be able to say, "My language is perfect. It can do everything."

But it's just plain impossible to design a perfect language, Why ?
Because, there are two ways to look at a language.

One way is by looking at what can be done with that language.

The other is by looking at how we feel using that language—how we feel while programming.
Read 10 tweets
Fluency in #terminal #scripting is a skill often neglected and considered archaic, but it improves your flexibility and productivity as a #SysAdmin in obvious and subtle ways.
Let's start a thread about #bash scripting with #EnableSysadmin support...
Why settle for boring #Bash? You can customize every aspect of your shell and this article gets you started. via #EnableSysadmin
How to manage your Linux command history via #EnableSysadmin by @kenhess . Taking the mystery out of your Bash history.
Read 16 tweets
Here's my #WFH arsenal for research in computational physics:
1. #Python (via @ProjectJupyter notebook)
2. #SublimeText (with plugins for #LaTeX, Markdown, C++)
3. Mac Terminal (for file management, navigation and SSH)
4. #Bash scripts (mostly using rsync, awk, grep)
@ProjectJupyter 5. @mendeley_com (for managing & highlighting refs.)
6. @obsdmd (newly found knowledge base)
7. @Sci_Hub (when I can't find papers on my college lib)
8. @powerpoint (for sharing progress)
9. @firefox (for everything else)

What's yours? #AcademicTwitter #AcademicChatter
Couple of tools I missed:
10. @inkscape (improving vector plots, creating schematics)
11. @Gimp (image editing)

All these tools are for analyzing and post-processing results from my arsenal of simulation tools (which deserve another thread)
Read 3 tweets
Para convertir números en Hexadecimal a decimal en el terminal de #Linux:
echo $((0x2F))

o También:

#GNU #bash #shell #Ubuntu #commandline Image
Y al revés. Para convertir números de Decimal a Hexadecimal en el terminal de #Linux:

printf %x 15; printf "\n" Image
Para acabarlo de rematar, mediante la calculadora "bc" podemos realizar conversiones de hexadecimal o de binario a decimal:

echo "ibase=16; 2F" | bc

echo "ibase=2; 100" | bc

echo "ibase=2; 101" | bc Image
Read 3 tweets
Para los talibanes del terminal de #Linux:
Como ver el pronóstico del tiempo desde el terminal:

Como ver el pronóstico de lluvias y temperaturas:

#gnu #shell #bash #Ubuntu #commandline ImageImage
Se me olvidaba, también podéis cotillear el pronóstico de otras ciudades de todo el mundo, ejemplo:
curl ImageImage
Continuando con el hilo: Si queréis ver los datos meteorológicos, pero comprimidos en una línea del terminal de #Linux, hay otro programa en los repositorios de #Ubuntu:
sudo apt install ansiweather

Y lo ejecutamos con la siguiente sintaxis:

ansiweather -u metric -l "Madrid" ImageImage
Read 3 tweets
So wanted to do a thread on using #bash on the #linux #cli .

Bash often gets ignored in today's cloud centric world but there is a lot of cool stuff you can do just with basic commands, the switches on those commands and piping things together.

To the command line!
So I'm going to start out with some of the more basic commands and some switches that people aren't familiar with and then rapidly get more advanced in both usage and stringing commands together.

Never done this on Twitter before so should be exciting!
Let's start with: ls

# show files in a single column
ls -1

# show files with detail
ls -l

# show files in reverse time order
ls -ltr

# show all hidden files
ls -a

# show files with human readable size and sorted by size
ls -lSh
Read 19 tweets
#linux #bash #obfuscation #technique #bashfuscation
padding commands with history expansion characters (#exclamation mark (!))
! ! ! ! echo this is test
(removed the previous tweet as I revealed too much info !)
#linux #bash #obfuscation #bashfuscation

using history expansion character -> !! (i.e. last command)

!!t really

is equivalent to
cat really

(only 4 interactive shell)
#linux #bash #obfuscation #bashfuscation

padding commands with empty commands (: ;)

: -> true (do nothing)
; -> command separator

: : ; : ; cat really
! ! ! : : ; : ; cat really
Read 8 tweets
#linux #bash #path #obfuscation
goal: obfuscate /etc/passwd
1) #directorytraversal: /mnt/././../etc/././passwd
2) escape characher: /etc/.\/\/\/\/\/passwd /etc/.\/.\/.\/.\/passwd /\e\t\c/passwd
3) null character /et$'c/pa\u0000/notexist/path'sswd
#path #obfuscation using #symbolic #link
ln -s / anything
head -n 2 anything////../etc/passwd

ln -s ../../ wow
head -n 2 ././wow/../etc/passwd

* ../ after a sym link applies to the sym link not the current path
filename expansion #globbing

cat /et*/pa**wd

command expansion
$(echo /e)tc$(echo /pa*)wd

+ other string obfuscation techniques
Read 5 tweets
#linux #bash #obfuscation using shell parameter expansion:

${alphabet:2:1}at really
${alphabet: -24:-23}at really
${alphabet: -24:1}at really
${alphabet:2:-23}at really…
similar #bat #windows (…)
The goal is to obfuscate the following command:
cat really
in which, really is a file.
Using arithmetic (add, sub, mul, div, mod, and pow) for calculating index or lenght
${alphabet: 2:(-20-3)}at really
Read 6 tweets
#linux #bash #obfuscation using octal vals
$'\143\141\164' really…
"Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard."

$'\143'$'\141'$'\164' really
$'\143'''$'\141'''''''''''''$'\164' really
$'\143'''$'\141'''""''''""''$'\164' really

'' -> empty string
""-> empty string
'a''b' -> 'ab' (concatenation)

(deleted the previous one, as the picture had a problem) Image
To give you a headache

$'\143'''$'\141'$t''"$t"''`$t`''$'\164' really Image
Read 13 tweets
So I’ve been wanting to be play this game..Finally going to do it... Image
1. (#Damon & #Elena) #Delena |You want a love that consumes you. You want passion and adventure, and even a little danger..#TVD
2. (#Liam & #Steffy) #STEAM | No one can stop us. You know why? Because we are written in the damn stars.
Read 140 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!