Filter
Exclude
Time range
-
Near
Run the last command with sudo:
Ever typed a command and got “Permission denied”?
Just type: sudo !!
It re-runs the last command with root access. 
🔥 Super useful!
#BashTips #LinuxTricks
1
30
La personalización de la ventana de terminal y el prompt es algo que muchos pasan por alto. A mi me gusta ajustarlo y cambiar algunas cosas dependiendo del entorno. Corto hilo con #bashtips (hilo) 🧵
2
20
81
13,421
If you need to use the command line, a few minimal things will make it much easier. Use the command history! If you've typed some big command before, don't waste time typing it again. By default ctrl-r activates the reverse search. Type a few letters from prev cmd… #bashtips
3
5
Bash tip: How to make a multi-line comment. Great way to document your bash scripts. Also one of my most upvoted answers on SoF #bashTips #linux
2
5
23 Oct 2021
Useful Bash Commands You May Not Know About. url.igoros.com/6it Here are some lesser known but useful bash commands that will help make the shell scripts you write cleaner and more maintainable.... #BashTips #CloudFoundry #CommandLine #FreeCloud #LinuxHandbook

3
Today I learned lot of files are symbolic links. Instead of using `ls -l`, you can use: `readlink -e` to do the job all the way through to the eventual file. readlink -e `which zipalign` ==> /usr/lib/android-sdk/build-tools/debian/zipalign #bashtips
1
1
2
#curl is maybe one the most used binary to request a website or make quickly some tests. Here is some useful uses cases. ⬇️Do you have any fav one which isn't list below ⬇️? #bashtips #pentest #bugbounty
2
8
49
12 Oct 2020
ping $(ip r|awk '/^default/ {print $3}')
1
1
Monitor network usage stats on #linux 👇 github.com/Bhupesh-V/til/blo… #bash #bashtips
3
4
29 May 2020
Replying to @M_C_Stott
alternatively make two lists of usernames and passwords do: for user in $(<usernames.txt); do for pass in $(<passwords.txt); do echo "Trying ${user} with ${pass}"; done; done #bashtips
1
2
Save 60 minutes this year with this SUPER awesome 60 second BASH shortcut trick!! ↓ #Save60min #ThursdayThoughts #BashTips youtube.com/watch?v=RKK3wIA6…

1
I should clarify, obviously 'which' is going to be no different than just typing the command that is in your PATH, but it's the "sudo $( <something>)" pattern is what is dangerous here and should be avoided.
Replying to @bitifet @bashtips
I would not recommend using sudo along with a command that you're unsure of the output (which). Even if you think you're sure, imagine what happens if someone happens to put a command into your PATH that takes precedence over the one you think it will before you run it.
3
1
7
TIP: Execute a script or command which is in your PATH but not in root's one as root. sudo $(which my_awesome_script) [args…] Use "sudo -u <user>" for any other user. Cc: @climagic @bashtips
3
1
2
#bashtips NUNCA uses PATH como variable a menos que quieras modificar la viriable que YA existe y es SUPER importante para que todo ande bien. Le pasó a un amigo.
5
#bashtips o como evitar un dolor de cabeza: Bash trabaja en octal y esto hace que una secuencia de 1 a 10 sea igual a: 1 2 3 4 5 6 7 10 😱😱 Entonces, si alguna variable (por ejemplo $var) va tomar los valores 8 o 9, asegurate de ponerlo así $((10#var)) para que use base 10 😬
1
1
5
9 Mar 2019
Şurada dursun, belki birinin işine yarar. #bash #bashtips #cli
2