Skip to content

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 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 …

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…

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). …