0
votes
0answers
7 views

Insert missing string in multiple ordered columns

I have a multi-column file that looks like this: 6 93129B 177 306.98 350.20 8.84 0.23 -0.79 0.22 0.46 m 7 8 192 269.08 413.35 9.29 0.15 -0.81 ...
1
vote
0answers
5 views

Find a file that starts with a capital letter

I'm trying to find all files that start with a capital letter, using the following command: find . -type f -regex '.*\/[A-Z][^/]*' It's finding paths with only lowercase letters. The following ...
0
votes
0answers
3 views

How long should mkfs.fat take to format a 64GB microSDXC Card?

I am attempting to format a possibly-broken microSDXC card. I issued the following command: $ sudo mkdosfs -F 32 -v /dev/sdi1 The following output was generated immediately, and the command is ...
1
vote
1answer
13 views

Split XML file into multiple file

I have an xml file that have different nodes, I want to split files like this: <unix> <mm> </unix> <osx> <nn> </osx> When I run the script I want it to make ...
3
votes
2answers
20 views

Dash equivalent of self-redirection of script output

In Bash you can redirect all future stdout output of the currently running script. For example with this script, exec > >(logger -t my-awesome-script) echo 1 echo 2 echo 3 This will end up in ...
1
vote
2answers
13 views

Changed terminal permissions

For no known reason I suddenly have to execute most terminal commands using sudo. For example, I have always been able to run "git pull/push" etc. without any trouble. Now, I get "permission denied". ...
3
votes
1answer
61 views

It's bad to use ls -A to list hidden files?

I want to list every file, including hidden files, in the current directory. I don't want to include the parent (..) and current (.) directory. I found this: how to glob every hidden file except ...
-1
votes
0answers
8 views

How to replace KDE with Gnome 3 in Debian?

Currently I'm using KDE desktop in Debian 7. How can I replace it with Gnome 3?
0
votes
0answers
6 views

CentOS IPTABLES how to block connections from internet and other questions

I have a CentOS machine that I use in private LAN for development and as file server. I did the following setting to allow httpd, GlassFish, Samba and SSH. Chain INPUT (policy ACCEPT 0 packets, 0 ...
2
votes
0answers
8 views

About dev mapping of partitions

New Linux user. Today had bright idea of making a backup of two partitions on an sd card to another sd card already in use. Did this: shrunk partition on backup sd, thus creating unallocated space, ...
3
votes
1answer
19 views

Why different behaviour of trapping EXIT vs INT

Running bash 4.3 on Kubuntu Trusty 64 bit. Please see the following two files: trapping-int.sh #! /bin/bash trap "echo Exiting" INT cat </dev/urandom >/dev/null echo Hello trapping-exit.sh ...
5
votes
3answers
65 views

Is it possible to create an edited copy of a file without using up extra disk space?

If I have a large file, I can use ln to make make "copies" of it that don't use up extra disk space. But what if I don't want an exact copy of the file? Is there a way to create a new version of a ...
1
vote
0answers
8 views

How can I make a read-only Linux system (which uses unionfs) read/write for the duration of upgrades?

Assuming having an embedded linux application, and for protection against corruption from example abrupt power offs, you implement a read only system with union fs. But then, how is it possible to ...
1
vote
3answers
26 views

Mute system error message in a script file and display mine

I have created a simple script to move all the files with .sh suffix in the current working directory to a designated directory If there was no such file, the script should output only an error ...
-1
votes
1answer
16 views

How do I use export setu command [on hold]

What is the difference between export and export setu command? I have searched online these command (export setu) but it's not found.
-2
votes
0answers
18 views

is it possible to run a linux in recovery mode

I would like to enter in a Debian Linux located in one micro SD card starting an update.zip in recovery mode I think it is possible by a switch_root. I don’t know what exactly does /sbin/init, are ...
2
votes
2answers
31 views

Use the same file link for both Linux and Windows

As in the title, is it even possible to do so? I mean, can I create a link on Linux and than make this link valid also on Windows? Use-case I have the folder /media/Data/DownloadedMusic on a NTFS ...
0
votes
0answers
5 views

Openwrt Arpwatch

Trying to follow this easy example http://www.techrapid.co.uk/openwrt/detect-arp-poisoning-network-arpwatch/ but I don't have the file /usr/lib/sendmail. I have ssmtp 2.64-4 installed.
1
vote
0answers
7 views

How can I make wlan0 show up automatically when I plug in my WiFi USB adapter?

Before I plug in the USB there is no wlan0: root@beaglebone:/mnt/etc/network# iwconfig lo no wireless extensions. eth0 no wireless extensions. usb0 no wireless extensions. ...
0
votes
0answers
8 views

Boot to windows installer from USB drive in GNU Grub

When I installed Backtrack 5 R3 I chose to dual boot, and it completely erased my BIOS and installed GNU Grub as the first thing that shows up when I boot up. The "Press escape for startup options" ...
1
vote
0answers
7 views

How do I direct my audio to a bluetooth device?

I have successfully paired my "headset" (actually its a speaker) with KDE. Now where can I go to tell it to send audio to the speaker. My multimedia settings don't seem to list the device as an ...
2
votes
1answer
58 views

Tool to give only the built linux source code

Linux is large complex piece of software. A running kernel in the system would not be using all the code. I'm looking for a tool which can give me the source code needed for the .config I used to ...
1
vote
1answer
17 views

tcpdump won't capture entire packet

I'm using sudo tcpdump -A -s0 -ien0 port 80 | grep schemas-microsoft >> ~/Downloads/convert.txt to capture microsoft-schema xmls being sent throught the internet, when tcpdump is supposed to ...
1
vote
1answer
34 views

Convert XML to SQL INSERT statements using the command line

Is there a way to convert XML to SQL INSERT using the command line, here is examples: <something> <somthingelse>lol</somethingelse> </something> would be INSERT INTO ...
0
votes
1answer
12 views

The linux console resolution seting didn't run

I use Gentoo/Linux. Because of some reasons, I want to set the resolution of the console. So I rewrite grub file. GRUB_GFXMODE=1366x768 GRUB_GFXPAFLOAD_LINUX=1366x768 But it isn't run.When I load ...
1
vote
1answer
14 views

Getting Current path in .desktop entry for ICON command

Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine. Now I can get the ...
0
votes
1answer
18 views

Manipulate lynx --dump output to get only specific sections

I'm trying to write a unit that will get me a word's definition from wordnik.com from CLI. Currently my code is: function wordnik { (( $+commands[lynx] )) || return 1 ...
2
votes
5answers
99 views

Stripping directory paths to get file names

What I am doing is converting mp3's with LAME. I already have an old script I wrote that works but I want to add to it this ability--to no longer delete the file but instead save it in a new root ...
1
vote
0answers
3 views

xim not working in Chromium

For a long while now, I have been happily using the xim IME (so that I may use XCompose freely). And I have never had an issue (though some applications which do not sanely handle unicode have crashed ...
-4
votes
0answers
14 views

best linux for low graphics(7872kb)? [on hold]

iam looking for best linux distibution for low graphics.,,.,.,.
0
votes
2answers
28 views

Start/stop service script like Ubuntu for RedHat

Is there a .sh script that manages starting and stopping the service like Debian/Ubuntu but for Red Hat/Fedora? Looking to place it into the file running some software.
1
vote
1answer
35 views

What are the advantages of GRUB over LILO?

Why is GRUB so much more popular than LILO? The only distribution that I can think of that uses LILO by default is Slackware Linux. All other distributions use GRUB. To this day I've never understood ...
1
vote
0answers
9 views

True vim-like behavior in Chromium

I have been struggling in the browser wars for years, and I think I have finally found an extension (chromium-vim) which allows me to switch away from Firefox (or more recently, palemoon) for good. ...
0
votes
1answer
9 views

Changing touchpad interrupt

I'm using Arch Linux. Before Arch, I was using Kubuntu. I have a Intel i7 processor with 7200 RPM hard drive. When I'm installing software (not from package managers, but a big proprietary one such as ...
1
vote
1answer
12 views

Confused about how to convert XML to CSV using xmlstarlet on OS X?

I asked a question earlier and it was closed as being a duplicate: How to parse XML to CSV with a shell script?. The answer in the duplicate that was linked suggested using a tool called XMLStarlet, ...
2
votes
3answers
79 views

Using grep/awk/sed to sort and combine 2 files

Ok I am running into a problem. I am taking a wifi log that has MAC addresses listed in it. I want to find out what MAC vendors/manufactors for the devices that are connected to my router. I have 2 ...
0
votes
0answers
33 views

Why is a here-string command substitution considered as a single line?

I'm experimenting with while read syntax and there is a thing I don't understand. The most basic scenario which reproduces the problem is the following: a bash script a.sh calls another script b.sh ...
4
votes
1answer
21 views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: ...
2
votes
1answer
13 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
1
vote
0answers
7 views

ols 5/rhel 5 can't establish secure connection to server after POODLE patch

My workplace recently patched one of our servers to address the POODLE vulnerability. Since then older Oracle Linux 5 clients (based on RHEL 5) can no longer connect to the server with any ...
1
vote
1answer
21 views

Why distros don't have a unique version which continously provide updates? [on hold]

I don't see the point why distros, instead of building new versions, don't have a unique version, which continously provide upgrades for the linux kernel, desktop environment, software packages, etc. ...
1
vote
0answers
14 views

CentOS 7 cpupower not setting the CPU's to maximum

On my machine, i have power savings disable on the BIOS. When I run Ubuntu on this machine, the CPU's are running maximum at 2100 MHz. However, when I'm running CentOS 7, even with the scaling ...
4
votes
4answers
134 views

Where does `hostname` store the hostname that I've set?

This is quite puzzling. Does anyone know where the hostname command stores and reads hostname from? I thought it was /etc/hostname but there is no such file on this Linux system that I'm using. I ...
0
votes
0answers
16 views

Convert XML to CSV using the command line [duplicate]

How can i do this? Heres an example: (no real data) <text> <Caption>Hello</Caption> <Comment>Hello-Again</Comment> ...
0
votes
0answers
11 views

CentOS 7 and howto extend my current WIFI network

I am running CentOS 7 and I have both a wired cable and a WIFI on my box. The WIFI on my CentOS box I would really like to use to extend my current WIFI network if this is possible. My current network ...
0
votes
0answers
7 views

Is there a solution for scanning webserver files for malicious code?

I have seen several times people move code into web servers now that had malicious code embedded into their HTML, php and other documents. These then get served up from the new server until they are ...
0
votes
1answer
15 views

archive a directory and its content to a zip archive

I ran zip book my/ it created a zip file book.zip, but with only my/ as its content, and nothing under its my/, but there is content under ./my/. I wonder how I can zip it correctly?
-1
votes
3answers
44 views

print the /etc/shadow file in the console

How do I change the permissions of an executable file to access the /etc/shadow file? So far I have the following bash script: #!/bin/bash gcc print.c -o print chmod +s print ./print exit 0 and ...
0
votes
0answers
17 views

c++ executable is complaining about some libraries missing?

I have my C++ executable which if I am running on machineA it works fine but if I run the same executable on machineB (which is a new machine I got) it fails and prints out some error messages - ...
0
votes
0answers
4 views

Ink level checking for epson on Centos

I have a SX-130 epson printer , i can't get to see the ink level , i tried logging to the printer properties but it says that it doesn't report any ink level infos , is there any way that makes me ...

15 30 50 per page