Reputation
3,207
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 6 21
Impact
~322k people reached

Feb
2
comment Find files using shell script
printf there can be replaced with read -p 'Please enter a file name' num3 instead. Also you'd first run the check then command substitute the find as in < <( find ... )
Feb
2
comment Crontab -e @reboot script doesn't start on restart
Since there is nothing special in that start-ethminer.sh file you might just need to run screen -m -d -S eth /usr/bin/ethminer -G -F http://some_pool_address_here >/home/user/start-ethminer.log 2>&1. Later connect to it using screen -r eth.
Feb
2
comment Errno 5 Input/output error when running yum check-update
This means (as its name implies) you have an error with your disk. There is an I/O error.
Jan
31
comment How do I check if an IP-address or a network is contained in other network in Bash?
Have you checked ipcalc ?
Jan
27
comment How to use backspace as a shortcut in Nautilus to go up a directory or previous directory
@don_crissti I see. I was checking the wrong version. on my GNOME Shell 3.8.4 it worked.
Jan
26
comment How to use backspace as a shortcut in Nautilus to go up a directory or previous directory
possibly a duplicate askubuntu.com/questions/289535/…
Jan
26
comment Remove extra header lines from file, except for the first line
This can also be shorten to sed '1n;/^ID/d' filename. just a suggestion
Jan
26
comment how can I take only file name and size from the du -sh command result
This question has probably been answered but , this will get you going for now: awk -F/ '{print $1"\t"$NF}'
Jan
12
comment Internet connection problem with web browsers only
If ping and dns work, you should check your proxy settings in the browser. Maybe you are using a proxy of maybe you did something with SELinux
Nov
30
comment Escape characters from echo -e
use tput setaf. See the following page: mywiki.wooledge.org/BashFAQ/037
Nov
11
comment Execute command on remote screen
Possibly a duplicate: stackoverflow.com/questions/7049252/…
Aug
13
comment Fill empty lines in specific column with values
It seems like you are trying to run kill -9 pid which is wrong. Use kill -l to see all available signals en what you need to use instead.
Jul
2
comment How to get back my split-screen after I lost connection with “screen”
unfortunately splits in screen do not persist after a connection loss or deliberately detach.
Jul
2
comment Print alternating lines with conditional
uniq can read files as well. uniq -f1 filename will work just fine
Jul
2
comment Using cron to start a process on a terminal without using screen?
You can use something like * * * * * echo test >/dev/pts/2 where 2 is the terminal you have active. Use w to see details.
Jun
22
comment RPM installation %post macro works on terminal but not on GUI
@AvinashNair use the snippet in my answer and see if this changes anything.
Jun
11
comment RPM installation %post macro works on terminal but not on GUI
@AvinashNair Ok, so what does echo "$DISPLAY" tell you prior building the rpm? Try then su -c 'rpm -ivh sample_rpm' and tell me what you get.
Jun
10
comment Determine the target of an SSH connection at runtime
See man ssh_config
May
26
comment BASH: Fifo troubles - seems selective about input
In the writer part you are using FD 4 so you are doing: done 4>"$fifoIn" Should be done 4<"$fifoIn" Also fifoIn=$(mkfifo /path/to/fifo). You need to make sure fifo exists. Then.. use while IFS= read -r line; do printf '%s\n' "$line"; done ... As Anthony suggested, use set -xv just under the shebang so you get more debugging info
May
24
comment grep command not working in conditional statement
And now I'm confused as well.