0
votes
1answer
30 views

Why is nothing shown from variable expansion?

Why does nothing come out of $IFS when: $ echo $IFS while $ printf '%q\n' "$IFS" $' \t\n' $ echo "$IFS" | od -bc 0000000 040 011 012 012 \t \n \n 0000004
0
votes
1answer
20 views

Can I see the summed up results of the ping command while it is running? [duplicate]

When I run the ping command it outputs information for each ping and in the end, when I kill the process it outputs some overall statistics --- 192.168.0.1 ping statistics --- 10 packets transmitted, ...
0
votes
1answer
29 views

command /opt/bin/date --date '-15 minutes 2016-04-27T14:14:47' producing result many hours before stated time

I'm using the following command in an attempt to work out the time 15 minutes before the timestamp: /opt/bin/date --date "-15 minutes 2016-04-28T16:58:55" '+%Y-%m-%dT%H:%I:%S' The problem is the ...
0
votes
0answers
5 views

Default to SeaBIOS after installing Gallium and removing ChromeOS

The question is pretty much in the title. I followed https://johnlewis.ie/neutering-the-developer-mode-screen-on-your-chromebook/, then https://wiki.galliumos.org/Installing/Peppy to install Gallium ...
0
votes
2answers
38 views

Where can I practice my Python and Bash scripting? [on hold]

I wanted to practice my bash scripting skills and python skills and wanted a good book or a site where I can practice and get excellent skills please. Any recommendations please.
4
votes
1answer
32 views

How does Linux decide the /proc/PID/stat “name” of a process?

Currently my machine has 5 processes running scripts through python, but Linux thinks only 2 of them have the name python (according to /proc/$pid/stat). That is, pgrep -af python shows: 1784 ...
0
votes
3answers
61 views

Delimiter in word splitting

In Bash, word splitting is a step in command line processing. From Bash Manual The shell treats each character of $IFS as a delimiter, and splits the results of the other expansions into words ...
2
votes
3answers
24 views

How to catch and handle nonzero exit status within a Bash function?

Say I have the following (pointless) Bash function: myfunc() { ls failfailfail uptime } I run it as follows: myfunc || echo "Something is wrong." What I want to happen is ls runs (as ...
0
votes
1answer
22 views

Correct syntax for inputting date variable into date calculation code

In my script, the following code successfully produces a timestamp variable for $n in the format 2016-04-28T15:47:48 for n in $(perl parsetime.pl | sed "s/.....$//") do echo $n result is: ...
1
vote
0answers
24 views

How can I repair a dual boot system when the boot mount point is not empty and dev-mapper job times out?

You might ask, how did I get to ask this question. Well I built a rocket ship rig for my buddy and dual booted it with Windows 8 and Debian 7. 5 years later his wife upgraded the Windows OS to ...
1
vote
1answer
23 views

Escape strings to be posted via curl

I am trying to make a script that takes some atom feeds and posts them to slack through the Slack API via curl. What I have now works for simple texts, but some of them have double quotes or & ...
0
votes
0answers
10 views

Qemu/KVM assign usb input devices to VM

So I have an Ubuntu 16.04 host running Qemu/KVM and a Windows 8.1 guest. I have successfully gotten the guest to use both a dedicated video card and dedicate monitor.. however I cannot figure out the ...
1
vote
1answer
16 views

Trying to copy/paste long script with multiple EOFs, Terminal starts running half-way through

Was trying to create a text block that I could just copy and paste into a Terminal window to accomplish something (in this case, create a systemd script to do maintenance on MySQL dbs, create a timer ...
0
votes
1answer
17 views

Cron stopped logging to /var/log/cron.log

A month ago I set cron to log to /var/log/cron.log by modifying /etc/rsyslog.d/50-default.conf. Logging worked great until I changed permissions on /var/log (by easing permission restrictions), and ...
0
votes
0answers
14 views

FTP Transfers Dropped- 421 time out

I have a VM that is mounting two NFS servers, lets call them NFS-A and NFS-B. The VM will transfer a file from NFS-A to NFS-B and as it should the VM will be the middle man as the file transfer ...
1
vote
3answers
38 views

how can we use multiple variables in single for loop in shell script?

I am implementing as below code using for loop but wrong output coming after running the script. for i in `awk -F"|" '{print $1}' $INPUTFILE`, j in `awk -F"|" '{print $2}' $INPUTFILE` do echo $i:$j ...
-1
votes
0answers
17 views

Bucket Brigade Help [on hold]

I want to write two scripts, brig and passer. The brig fire n command starts a fire with a n size. The brig status command displays the status of the fire. The brig quit command just exits the fire ...
0
votes
0answers
7 views

SSD died after BSOD [migrated]

I was playing a game on Windows 10 when I got a BSoD telling me "Critical process has died", collecting the info took incredible long so I shut the laptop down via ACPI (waited for nearly 20 minutes ...
1
vote
2answers
28 views

Steam doesn't work on Arch Linux x64

I have installed all dependencies I have installed nvidia drivers But I get this error please help /home/azamat/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable ...
0
votes
1answer
18 views

How to rewrite `install -T /dev/null xxx`

I am trying to write in one command the following 2 ones: install -m 0755 -T /dev/null filename echo "file content" > filename Is that possible? Is there any way to avoid the -T /dev/null for ...
2
votes
1answer
15 views

Sort processes by start time

Is there a way to view processes by the time they were started? top and htop have an option for sorting by how much time a process has been running, but I would like to sort by when the process began ...
1
vote
1answer
36 views

Bash print current line, line's output, and linebreak to file

I've got a txt of a bunch of domains I need to run dig +short mx on. I've got a script set to run the command, print it to a results.txt with: ./dig_domain_mx.sh > results.txt Downside is, I ...
0
votes
1answer
26 views

Stuck installing Arch Linux. How should I proceed?

I am following a tutorial here. I'm on step 2.2. I'm supposed to find out if I have a uefi motherboard by sending the command efivar -l. But I don't get the expected output. Instead I get efivar: ...
0
votes
1answer
49 views

What is the meaning of xargs show limits output

You can use xargs to discover limits about the commandline you're using: $ xargs --show-limits Your environment variables take up 1901 bytes POSIX upper limit on argument length (this system): ...
1
vote
1answer
26 views

Verify why a process went down accidentally on Solaris 11

I want to know what reasons could have caused a process to be killed automatically by a system or taken down. What file do I need to verify, or how do I know why the process crashes accidentally? Is ...
1
vote
0answers
12 views

how do I start user interactive systemd unit

I have a customized Linux image. When it first boots, it checks for some flags, then should ask if the user on console wants to kick off the setup script. If yes, then run setup, display important ...
0
votes
2answers
32 views

How to see information inside inode data structure

I can do an ls -li to see a file's inode number, but how can I list information inside a particular inode by using that inode number.
17
votes
3answers
1k views

In Vim , how can I copy from several lines? (not a range);

Assume I have 1 - funct1 2- funct 2 3 - funct 3 4 line 4 how can I copy line 1 and 3 (not a range of lines) and paste them, for example at line 8? If I do this in way with | arg like ( 1y|3y), I ...
2
votes
2answers
44 views

Delete directories that contain a certain file

I want to find all directories that contain a certain file and then delete those directories. With find . -name thatcertainfile -execdir pwd \; I get a list of all the directories I want to delete, ...
1
vote
4answers
59 views

Replace the specified string to its appearance time using sed or awk

I want to replace oooo to 1, 2, 3, ..., like a example below: From > cat demo.snippet snippet anova.cca "anova.cca fun" anova.cca( ,${oooo:object} ${oooo:,...} ,permutations = ...
5
votes
3answers
52 views

How filesystem atomically writes a block to disk?

Block is an abstraction provided by filesystem, block size is integer multiples of disk sector size. Suppose a filesystem uses 4K as its block size, and the disk sector size is 512B, when the ...
2
votes
2answers
69 views

How can I append a # in front of each line of a block of text?

This is part of my PHP Myadmin's configuration file: Alias /phpMyAdmin /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin <Directory /usr/share/phpMyAdmin/> AddDefaultCharset ...
1
vote
1answer
19 views

Can I mix SAS and SATA HDDs together using LVM?

I was playing with my server with a 300G SAS HDD. However, recently I am considering making it into a production server which demands elastic storage. So I meet the question that whether it is okay to ...
1
vote
2answers
31 views

Get swap memory info where swapinfo not available

I have HP-UX box. I need to write shell script to see the swap memory. Unfortunately. The box don't have swapinfo command. Is there any alternative way to see the swap usage percentage? Please note ...
1
vote
1answer
52 views

CentOS 7: Strange directories appearing in /

On my CentOS 7 (64 bit) machine some strange directories are appearing in the root directory / I can't work out what's causing it, if I delete them they slowly start to reappear. Here is a sample: ...
1
vote
0answers
7 views

How to assign an app to specific workspace with XFCE?

I would like to assign apps to workspaces, so every time an app is launched, it starts in specific workspace that it's assigned to. I'm using XFCE4 on Arch Linux.
0
votes
2answers
28 views

Doing ls -l /dev [duplicate]

When experimenting with the ls -l command I noticed that in the /dev folder ls -l was sometimes printing something like this in the first column : crw-rw----+ What is this "+"? What does it mean? ...
1
vote
2answers
29 views

loop create from file

I have a file(test) It contains two columns and two lines pippo mm pluto tt I would like to create directory,owner and create password I do some think like that while IFS= read a b; do mkdir ...
1
vote
1answer
19 views

XKB: assign multiple keycodes to one behaviour (<ESC>)

I have a new bluetooth keyboard, and for some reason the keycode that the escape key returns is 172 instead of 1 (according to 'showkey'; the same codes have 8 added in xkb, so 180 instead of 9). By ...
1
vote
0answers
14 views

can't save docker image: Error response from daemon: chtimes: invalid argument

i can't save my docker images, when i try to save a container, it fails: Error response from daemon: chtimes ...
1
vote
0answers
17 views

systemd timer running rsync at 3am and stopping at 6am

How to make a systemd .timer , that starts rsync A U@H:B at 3am and stops (e.g. kill -TERM) at 6am on weekdays ? Do I have to make one that starts at 3am, and second that runs kill at 6am and for ...
0
votes
1answer
16 views

IMAP — what are the most popular versions used these days?

I can't find any information about the status of IMAP version 4 and how widely it's used nowadays and how widely other versions, 1, 2 and 3 are used. So is IMAP version 4 common these days? What ...
1
vote
0answers
14 views

i'm looking to install qubes to an external ssd. any recommendations? [on hold]

I am looking to install qubes on an external ssd. Is there a recommended model that won't give me any dramas? minimum 64gb. or should i just install it to a usb?
1
vote
1answer
19 views

bspwm switching monitors doesn't work

Any ideas why switching monitors with super + {_,shift + }{1-9,0} doesn't work until after I run this line in my terminal: bspc monitor -d 1 2 3 4 5 6 7 8 9 bspc query -T Here is my ...
2
votes
1answer
21 views

How can I specify a system wide proxy without giving my password in plaintext?

I must use a proxy for all internet traffic, I currently have it specified like this in /etc/environment : http_proxy=http://jsj:plaintext_password_yikes@proxy.whereiwork.com:8080 ...
1
vote
1answer
11 views

How to mount USB Pendrive - CentOS 7 [on hold]

I have just installed CentOS 7. Everything looks fine, except that I cannot open a USB pendrive when I attach it to the USB port.
1
vote
2answers
29 views

Rename all the files with a specific extension in all the subdirectory [duplicate]

I have a lot of directories. Each one of these has a file with a specific extension .ext. I want to rename these files. Example: // Note: The names are random, can have spaces and special ...
7
votes
1answer
1k views

Why does `grep fil*` fail?

I found echo file|grep fil* fails, but echo abcd|grep abc* succeeds. I don't understand it, can someone explain? Thanks
-1
votes
4answers
45 views

How to filter the table names from .txt file [duplicate]

select * from emp; select * from dept; selection end; I want to obtain this output: select * from emp; select * from dept; I tried by using: awk '/select/{a=1} a; /;/{a=0}' ...
1
vote
0answers
12 views

Using crontab to start redshift on boot? [duplicate]

I am using crontab to start redshift on boot. @reboot /usr/bin/redshift is showing from crontab -l. My redshift.conf is configured properly and invoking redshift works from the command line. Also ...

15 30 50 per page