- Apr 4, 2009
- 12,156
- 59,717
Gogol is @BlurryBit ´s former username here on the forum.yeah gogol still not loading properly on my Erwise web browser yet... hopefully they will update soon.
Gogol is @BlurryBit ´s former username here on the forum.yeah gogol still not loading properly on my Erwise web browser yet... hopefully they will update soon.
interesting hmm. How do you recall it? How do you debug it after the set -x?Did you know?
To debug a bash script you can add set -x directive into the beginning.
#!/bin/bash set -x [your script goes here]
Thanks tointeresting hmm. How do you recall it? How do you debug it after the set -x?
let’s say i have some long command there. Haven’t tried this one yet.
edit: seems more like a shell script to me due to that shabang thing.
set -x
, we can see every action that the script performs. It starts with + character, and then the standard output is visible after this action. This makes it easier to debug the bash script, because all the variables are visible in the commands. And it can help a lot, when your variables are being calculated in real-time mode.set -x
, is just a discovery of this year!why the shebang then? Do you directly call that sequence in terminal or do you use a shell script to execute it? Thanks for the tip because i am surely gonna try it tomorrow when I get to my lappy.Thanks toset -x
, we can see every action that the script performs. It starts with + character, and then the standard output is visible after this action. This makes it easier to debug the bash script, because all the variables are visible in the commands. And it can help a lot, when your variables are being calculated in real-time mode.
When I didn't know about set -x, I output the variables I needed in different places of the script using echo during debugging to understand what happens there after each command. But this way is much easier.
So, for me,set -x
, is just a discovery of this year!
So you work in radioactive weapons departament?coz what it writes does not matter. What you know matters. Learn it. Or you will be a newbie forever. Chatgpt is a crutch. Don’t get used to it. Use it to generate what you need.
ps, I really want to see you as an engineer in a radioactive weapons department.
btw Sohom, great job buddy. Please keep this thread going. Love it already. <3
*.sh
files.No, I only follow them. My hero died in the last accident. Still looking for a new one, thanks.So you work in radioactive weapons departament?
Strap-on?swapon
Strap-on?
What is this whole thing doing. I removed my computer. Will paste into chat gpt.
https://pastebin.com/h4iU2Anq
Did you know?
To debug a bash script you can add set -x directive into the beginning.
#!/bin/bash set -x [your script goes here]
It doesn't exist in windows. Hehe@raitoxxxx
where do i see it, as in the log? makes sense except i dunno the debug part.
bhw, cmon guys, make the editor better. Can’t even quote to these basic posts. :/
thats just a perpetual ram trick
ahh that makes more sense, thanks buddy!Use case
View attachment 325964
Look at those + symbols
No need to echo or print name, age, place variables
It doesn't exist in windows. Hehe
It's unix trick.
So this is some other way of thinking.
Hire someone if you are in this situation, or atleast try to learn. Knowing a few commands won’t get you far. In fact, it can kill the project you are working on in one single command.It really d still is good to know a few commands because at some point will be a requirement.
df -mh
sudo fdisk -l
lsblk -d -o name,rota
lsblk
free -h
sudo dmidecode --type 17
cat /proc/meminfo
lsb_release -a
uname -r
lscpu
top
htop
hmm i guess you have to know the basics first to follow any of theseSo far - bad.
These look vague.
What are these shortcuts \ commands meaning? Or is it random letters put together? Like "df" - is this standing for diagrams flicking or dripping filters? Or sone genius put super fckiny hacking code for super crypto 14 year old hackers.