I’m using Ubuntu and gcc. My application crashes I only have Segmentation fault message in console. (previously Segmentation fault (core dumped) was reported but now it changed to just Segmentation fault). There are no hints where the problem is so I do not understand how should I fix the problem. I nee…
start file manager in terminal window wheezy
Is there an easy way to start my File Manager in GUI as root? All I want to do is temporarily create/update some files and I want to do it through the GUI. I am using a Raspberry Pi that is running Wheezy. Answer depends on your file manager. for example: sudo pcmanfm &>/dev/null &
How to enable confirmation alert when using ‘rm’ command to delete files / folders? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
How does read(2) in Linux C work?
According to the man page, we can specify the amount of bytes we want to read from a file descriptor. But in the read’s implementation, how many read requests will be created to perform a read? For example, if I want to read 4MB, will it create only one request for 4MB or will it split it into multiple …
Using a bash script to dynamically generate another bash script and run it
Is there a way to generate a Bashscript dynamically using a Bashscript, change the mod of the generated Bashscript to allow execution, and then run the generated Bashscript? Answer yes it is totally feasible! gonna give you the output like :
Using regular expression search and replace rename on linux with directory creation
Take a list of files such as: I would like to rename these files and add some formatting similar to this: This would end up with the list of files looking like Up to here, this all works fine. The next step, and my real question is, how can I create a directory for each SubGroup in this process using
Until Loop not working as expected
I’m currently learning Linux and as an homework, we have to create a few basic shell scripts. Nothing especially complicated but this one is giving me headaches. Here’s my code : Basically, I have another script called afficher.sh (I’m french so don’t mind the french language used) and…
‘tree’ and ‘ls’ change text color on Linux command line
I’ve been having a peculiar issue caused by the tree command on Linux. When I call tree, the the color of the command prompt changes, and is only returned to normal by the ls command. I’m curious if others have encountered the same issue, and if they have fixes or workarounds. I’m using the …
How does netstat determine symbolic hostname?
I was trying to understand what the –numeric/-n flag of netstat does? Manual says the following about –numeric/-n –numeric , -n Show numerical addresses instead of trying to determine symbolic host, port or user names. Following is a line of output with “-n” option Following is t…
Using a pipe (or) in sed
From a variable $(JS_SOURCES) containing something like make writes a file containing mod1,othermodule. It works with this code: And my question is Why can’t I replace the 3 expressions with one using pipes ? The shorter sed command doesn’t trim the string (the purpose of two of the expressions). …