All Questions

0
votes
1answer
17 views

How to minimize the unnecessary files installed by package dependencies?

I'm trying to install packages with having as little files from their dependencies as possible, since system size is important to me. For example, when wanting to install a package, I could install ...
0
votes
2answers
51 views

Corresponding 7zip command for unzip -p -a

I have a question regarding unzip command in Unix. As of now my Unix command unzip -p -a is able to zip the file which are lesser in size. But if the file size is larger then the command is not able ...
2
votes
1answer
41 views

Add content one file to another

FILE1=$1 FILE2=$2 if [ ! -e "$FILE2" ] then touch $FILE2 fi while read line; do if grep -q "$line" $FILE2 then echo else echo $line >> $FILE2 fi done < $FILE1 I want ...
2
votes
1answer
25 views

Does `git archive` use the wrong file timestamp?

It seems git archive creates a tarball with wrong file modification timestamps, resulting in tar complaining when unpacking: $ cd repository $ git archive -o repository.tar.gz master . $ find ...
2
votes
0answers
13 views

Network with Client Device as Gateway

How would I configure a Debian server as a router, but have one of the client devices (running Android) function as the default gateway, allowing the network to connect to the internet? I have not ...
1
vote
1answer
26 views

How to enable yank-nth-arg using vi mode on Bash?

Hey guys I'm trying to figure out how can I take my nth arg, from my last command, without using the !:nth. In a normal bash (emacs mode) I can do that using the follow shortcuts: <ESC>nth_arg ...
1
vote
1answer
32 views

Linux command to copy as hard links, while deleting unwanted files?

I'm looking for a command that behaves both like cp -al in only creating hard links rather than copying file contents, and rsync -a --delete in removing files from the destination that are not ...
1
vote
0answers
14 views

Gnome: forcing an application to start on top

I am having issues with starting Thunar (a file manager for Xfce) via a keyboard shortcut and having it start on top of other windows. The Thunar window always appears below the current active ...
1
vote
1answer
15 views

Where are default compose-key bindings stored?

I recently discovered the compose key. It's wonderful to type Compose-> and get a Unicode right-arrow (→). I know I can add my own, but where can I find a complete chart of the defaults? The ...
4
votes
1answer
55 views

Why doesn't inotifywatch detect changes on added files?

I'm trying to monitor my /tmp folder for changes using inotifywatch: sudo inotifywatch -v -r /tmp After creating couple of files (touch /tmp/test-1 /tmp/test-2), I'm terminating inotifywatch (by ...
-1
votes
0answers
43 views

How to write a code which would output combination of two other files? [on hold]

I have two files. Using these two files as sources, I need to generate an output file. File1 will contain resistors connected to nets (Syntax: R1 Terminal1 Terminal2): See below R1 7n 1n R2 8n 1n ...
0
votes
1answer
10 views

How to save customized interface of DeadBeef?

DeadBeeF has a new option, 'Designer mode' allowing to modify the displayed features, modules, addons, in the way Foobar2000 is doing by its layout editing mode. Example of difficulty: All ...
1
vote
0answers
17 views

Can I use dd to quickly resilver a ZFS mirror disk?

My ZFS pool consists of two mirrored disks. I have two more disks which I plan to use for rotating offsite backups. The first backup disk was added to the zpool and has nearly completed resilvering. ...
2
votes
1answer
10 views

Run various shell commands when NUT reports a low UPS battery

On a Debian server I've successfully installed the nut package so that my Ellipse PRO 1200 UPS's status can be fetched via USB (upsc my-ups returns battery level). Note: I haven't tested what will ...
4
votes
2answers
31 views

Symlink all Directories inside one directory to another directory

I am using a NAS(synology/xpenology) currently with 1 Drive /volume1/Drive is the share. I have other shares on this Drive /volume1/Drive/SeriesPC its a share connected to my drive on my pc. Now I ...
0
votes
1answer
18 views

Enable microphone on boot

On Arch Linux with Gnome 3.14, the microphone is disabled by default. So every time I need to use Skype I need to open Sound settings and enable the mic. How do I enable the mic so that it's ...
1
vote
2answers
32 views

Find average CPU, vMem, sMem usage on 1, 5, and 15min

I am trying to find at time T the average CPU usage on 1, 5, and 15min, just like what you get from /proc/loadavg Same thing for virtual memory, and swap memory. I would be fine with a python ...
2
votes
1answer
34 views

Extend grep to find a match after the first match

I have a long list of strings separated by newlines and each section separated by a string starting with ~ (there are no other ~ in the file). I want to extend grep to find the ~ text right below the ...
1
vote
1answer
23 views

Jenkins does not use system's locales

I got a interesting behavior in Jenkins. Jenkins' shell does not use my systems locales. Jenkins runs as user jenkins on my system. Logged in as jenkins via SSH: locale displayed: ...
1
vote
0answers
14 views

lynx domain shows 404 error when running from localhost

I have a strange problem and I don't know where I have to take a look to fix the issue. I am running the command lynx https://example.com/index.php from the server where the website is hosted on and ...
0
votes
0answers
26 views

The preferred/most-common ways/procedures to programmatically edit configuration files? [on hold]

Well, almost every daemon is configurable. Most distributions have also daemonized system stuff, such as networking. For every installation that I've done in my life, I have always edited these ...
1
vote
0answers
6 views

Huawei(e303s) installation in centos 6.4

I have installed CentOS 6.4 in my system. I connected Huawei(e303s) with airtel 3g,tried installing the driver provided with Huawei its getting installed with some error. It shows error like : The ...
1
vote
1answer
36 views

Remove parent and sub directory

sample_dir2 `-- sample_dir |-- cambridge | `-- security | |-- annex | `-- parking |-- history.exe |-- markham | |-- annex | |-- building1 | `-- ...
1
vote
0answers
25 views

Some commands does not work in su envirorment

I have logged in to CentOS 5 machine with normal user and then I used su command to login as root user. Now commands like ifconfig, useradd, userdel are not working on machine and it gives command not ...
0
votes
0answers
24 views

Striped lines in Ubuntu 14.04

I have just installed Ubuntu 14.04 64bit yesterday in my PC. But today, desktop turned into striped lines many times and I had nothing to do except pressing the power button on CPU. Don't know why ...
0
votes
1answer
22 views

Could I install both Docker and LXC on the same linux box?

Docker and LXC both has it pros and cons. For instance, LXC could run properly with traditional init service or process but docker couldn't (at this moment).
3
votes
1answer
38 views

How to call a shell script from Javascript code?

I am not able to call a shell script program from javascript(for example if someone will click a button in webpage then a script will run and will throw some output)???
0
votes
1answer
35 views

Determine the new line character in a text file?

given a text, is there a program that can detect what the new line character is, the Windows, Mac, or Linux one? Eg, the following text is shown by less memor:^M^Mis storage directly accessible ...
1
vote
0answers
28 views

Setting up a 802.11s mesh network for mobile devices to communicate with a wired server

I'm in the process of developing an android app that maintains a device's connectivity to a linux-based WiFi mesh network, and periodically sends status information (GPS, battery life, etc.) to a ...
2
votes
2answers
20 views

getting an error in aireplay-ng in kali linux

when i was testing penetration testing on my router using kali linux, i followed all the steps from this link http://lewiscomputerhowto.blogspot.in/2014/06/how-to-hack-wpawpa2-wi-fi-with-kali.html in ...
0
votes
1answer
36 views

Unable to access SAMBA Share From Windows [on hold]

Hi This is a repeat of this question on Superuser. Since I didn't get any answers there, I've posted the question here hoping to get more answers since this is more Linux & Unix specific. Hi ...
2
votes
2answers
26 views

How do I create a utility USB?

I do a lot of work with many different bootable images all on different flash drives. However, it gets annoying to search for a specific drive, plug it in, and use it. Is there a way I can consolidate ...
5
votes
2answers
378 views

How to treat strings with spaces as a whole in bash? [duplicate]

I'd like to build an error handler which will make an empty file marked with the error_occur time. The core idea is to use the result of date command as a parameter. I did: time_stamp=$(date) touch ...
0
votes
1answer
37 views

Can't use hostname for my linux machine

I installed apache on my RHEL machine yesterday and found I could access it from a browser using http://. Of course, sshing using the hostname was also working. So, I made an index.html file inside ...
1
vote
1answer
23 views

Can I use Apache web server in a chroot-ed environment on Gentoo? And how?

I just installed Apache for the first time on Gentoo. When I chroot into Gentoo from another OS (in this case Microknoppix) and try to start Apache (with /etc/init.d/apache2 start) I get the error ...
1
vote
0answers
6 views

iCloud calendar command line utility

Is there a CLI utility that allows one to sync up with their iCloud calendar (i.e., iPhone calendar on the cloud) to modify calendar events, etc.?
0
votes
0answers
23 views

Distinguish to file between 2 time of mounting in kernel [on hold]

As title, I don't understand deeply structures in kernel (file, inode). So has anyone got a solution? Example: I have got a file test in /dev/sdb. When I mount /dev/sdb first time, I open file test, ...
0
votes
1answer
28 views

static ip released after reboot [duplicate]

i have a centos 6.3 wtih 3 network interface, i've set the static ip for second and third network card by typing the command ifconfig eth1 10.1.1.1 netmask 255.0.0.0 metrics XXXx, but after reboot, i ...
1
vote
0answers
7 views

Modifying displayed pixels [migrated]

Is it possible to easily modify individual pixels displayed on a screen according to a function? For example, suppose a pixel on the screen had values in (Red,Green,Blue) = (25,50,100) and I want to ...
0
votes
1answer
53 views

Grep -m 1 doesn't work

I'm using the following command to parse a form element from HTML using grep. The $RESP variable contains the output from a previous curl request ... echo $RESP | grep -m 1 -o -E 'name="id" ...
0
votes
1answer
27 views

Bash Brace Expansion & Variables [duplicate]

I have a find command: find Directory/{Alpha,Bravo,Charlie} arg1 arg2 I want to replace Alpha,Bravo,Charlie with $find_dir find Directory/{$find_dir} arg1 arg2 however the latter expands to ...
0
votes
0answers
32 views

How to login as root [on hold]

I am new in this forum and Linux. I have a problem in my Machine. After I login as root to system, and if I try to do any thing, I get an error message as permission denied. I already checked ...
1
vote
0answers
39 views

Udev running hibernation script

I have this udev rule that launches a script when the battery level is 5% or below: $ cat /etc/udev/rules.d/90-lowbat.rules: SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ...
1
vote
0answers
37 views

Tor install on CentOS server

I have followed the instructions provided here: https://www.torproject.org/docs/rpms.html.en However, when running yum install tor, i get the following dependency error: Error: Package: ...
2
votes
2answers
70 views

System calls supported in running Kernel

Is there a way to get the number of or list of system calls supported by currently running Linux Kernel? So I want to find a way to 'read' the syscall table of a running kernel.
1
vote
3answers
44 views

How to access temporary file straight after creation?

I've script which is connecting to remote host via SSH, creates temporary file and executing the following command: Calling system(mysql --database=information_schema --host=localhost < ...
2
votes
4answers
45 views

Awk remove field only if numeric

ls /var/log/packages/*SBo|cut -d / -f 5 return webcore-fonts-3.0-noarch-3_SBo winetricks-20120923-noarch-1_SBo wireshark-1.12.1-x86_64-1_SBo wxGTK-2.8.12-x86_64-3_SBo I want to substitute from ...
1
vote
1answer
16 views

[Debian][KDE] Can't get wireless to work

Before going into the problem I'd like to state that before this incident I had Debian with gnome instead of KDE. I formatted to KDE today and now I am unable to get wireless to work. On the system ...
2
votes
0answers
16 views

how to do a sip call from sipp

I am newest user using SIPp , I am trying to made a sip call from SIPp program on Linux but i fail on it . i want a command to call phone number (14042835351) from sip domain (80.81.82.83) with same ...
1
vote
2answers
167 views

What do square brackets in bash case statement mean?

http://ss64.com/bash/case.html SHOWS case word in [ [(] pattern [| pattern]...) command-list ;;]... esac What are square brackets indicating? Other websites omit them (i.e. no [[(] etc.) ...

15 30 50 per page