Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

4
votes
3answers
124 views

How can I delete a file named “>”?

I was running a Python script that malfunctioned and used sudo to create a file named >. How can I get rid of this file? Of course, when I try sudo rm >, I get the error bash: syntax error ...
1
vote
1answer
19 views

Why gcc show `unknown` in Target: x86_64-unknown-linux-gnu in Arch Linux?

I would like to know why when I run gcc -v under Arch Linux, it shows the unknown word in these outputs: Using built-in specs. COLLECT_GCC=gcc ...
0
votes
0answers
20 views

Installing a linux distro on a reformatted gateway pc [on hold]

I was given a four year old gateway PC that doesn't have an operating system installed and the hard drive is reformatted. I'm trying to install Opensuse or Kali Linux on the system from a boot-able ...
4
votes
2answers
50 views

What does an @ symbol denotes in the beginning of a unix domain socket path in Linux?

When I run netstat --protocol unix or lsof -U I see that some unix socket paths are prepended with @ symbol, for example, @/tmp/dbus-qj8V39Yrpa. Then when I run ls -l /tmp I don't see file named ...
-4
votes
1answer
42 views

Problem with sudoers file. Syntax error at line 82, but cannot find exactly what? [on hold]

I ssh'ed into my new Linux machine (no physical access) and I have root credentials. However, I cannot run sudo commands because of some error in the sudoers file made by someone else who logged in as ...
1
vote
2answers
26 views

CRON Job To Execute Command On Low Memory

I have a situation where I may need to execute an SAP command line tool hdbsql when memory gets too low (to help clean out the HANA table cache). I'm not well versed in Unix/Linux, and was wondering ...
0
votes
0answers
8 views

Why my limit on CPU does not validate via cgroups

/etc/cgconfig.conf ... group memlimit { memory { memory.limit_in_bytes = 8589934592; } } group cpulimit { cpu { cpu.shares = 1024; } } /etc/cgrules.conf: ...
0
votes
0answers
33 views

Kill the process and restart server when memory is exceeded - bash and cron

I have a site on webfaction, using django and python. However, I have problem with memory. The problem arises, because I use external library, that can run forever (consuming much time and memory). ...
-3
votes
0answers
24 views

Display main menu upon pressing enter jey [on hold]

How do i display the main menu again when a user enters the key? I've tried read null, nut it just takes me back to the console
0
votes
0answers
29 views

How come BSD has less driver support than Linux? [on hold]

BSD can easily use Linux binaries... So how come BSD has less support for graphics than Linux? Isn't it just a matter of porting the driver to BSD, which means BSD should have the same support for ...
-1
votes
0answers
14 views

How Can I recieve messages from more than one named pipes?

I have to use fifo in my code. I use sock to accept new client. For each client I create new thread to send and recieve message to him. In the function of the thread I use fifo to send and recieve ...
5
votes
3answers
215 views

How do Linux permissions work when a process is running as a specific group?

This is something I haven't been able to find much info on so any help would be appreciated. My understanding is thus. Take the following file: -rw-r----- 1 root adm 69524 May 21 17:31 ...
0
votes
0answers
16 views

Reshareing a Samba share

Thanks for looking at my question. I have 2 Networks on my firewall, 1 for the users and 1 for some servers. Now I have 1 server as sort of portal to some shares on other servers. the portal server ...
0
votes
0answers
22 views

mysql service exiting without error

I have installed mysql-community-server on openSUSE and am having trouble starting it as a service. I can start it using sudo mysqld --user=mysql without a problem and access the database normally. ...
7
votes
1answer
203 views

Know which process does I/O without iotop

On Linux, I want to know which process uses my disk I/O bandwith. I know I can use iotop but I have a machine where, for various reasons, iotop cannot be installed. How can I manually get that ...
0
votes
1answer
14 views

Restrict user to do SFTP on the www folder owned by www-data group

I would like to create a new user with read/write privileges ONLY in the /var/www/ directory including all sub-directories. The /var/www/ is owned by a group called www-data. Best way to do it I ...
2
votes
1answer
41 views

chroot ssh users

I am using CentOS 7. I need to give shell access to ssh users but restrict them in a jail. I have used jailkit to set up the jail. I have copied all necessary libraries, binaries that are needed for ...
0
votes
1answer
11 views

Centos 7.1: how to record from audio input (not microphone)

I use centos 7.1. What application can I use to record audio input (not microphone) from sound adapter? For example I connect TV sound output to PC sound card input.
0
votes
0answers
9 views

Upgrading Portage?

I'm attempting to upgrade portage on my Chromium OS VM and I get a masking on the upgrade saying it's masked by EAPI 5 and that my current version is EAPI 4. In order to upgrade portage I need EAPI 5 ...
3
votes
1answer
36 views

Size difference between an iso file burnt to a cd and the file retrieved with dd

I have an iso file (foo.iso) that I burnt to a dvd with the command : growisofs -dvd-compat -Z /dev/cdrom=foo.iso I then tried the command dd if=/dev/cdrom of=foo2.iso However, foo2.iso is ...
0
votes
1answer
24 views

FreeBSD bootable usb

How can I make a bootable USB stick with FreeBSD on it and then boot the image from Plop Linux? (I am using Linux mint) I want to install this OS ,also I want to know if Plop will detect the the BSD ...
0
votes
0answers
18 views

security setup for a Linux box expose to Internet [on hold]

I need to setup a Linux box (CentOS) and expose it to Internet. I just need to expose http service. Wondering if any security setup guide? I am not a security expert, just want to get a easy to follow ...
0
votes
3answers
118 views

Script to check if file exists and copy

Pretty new to shell script, want to write script which checks if any file .300 extension exists on /exports/files on server 10.xx.xx.xx. If *.300 exists, move file to /exports/files/arch and send an ...
1
vote
0answers
19 views

Blocking or forwarding packets as access point

I set up my Pi 2 as a wifi access point following this tutorial. I'd like to implement a rudimentary QoS, according to the DSCP field in every packet's header. That means, blocking packets using low ...
1
vote
0answers
22 views

How to know file name of sockets or pipes in /proc/[pid]/fd

In Android, #ls -l 15843/fd gives following output, lrwx------ u0_a179 u0_a179 2015-05-28 11:58 90 -> socket:[193728] lrwx------ u0_a179 u0_a179 2015-05-28 11:58 91 -> ...
0
votes
1answer
23 views

Rsync dry-run statistics- Different statistics after executing 'cp' and 'rsync' commands

In order to generate some random files, I have created a script which is as follows: #!/bin/bash for dir in `seq 1 10` do mkdir /root/mandar/RsyncSrc/$dir cd ...
0
votes
0answers
16 views

“avahi-daemon[1540]: server.c: Packet too short or invalid while reading response record. (Maybe a UTF-8 problem?)”

We are developing an application in Java for our internal project. Apache-Tomcat-7.0.57 is running on a Linux machine (Red Hat 4.4.6-4). But it throws an error avahi-daemon[1540]: server.c: Packet ...
0
votes
0answers
16 views

Why I can not access the windows network shared folder from SUSE

All, Forgive me I am not familiar with the Linux. Currently I just set up a network shared folder in a windows machine. I can access it from another windows system. The path looks like \\10.50.90.18. ...
0
votes
0answers
15 views

High read/write system call time

I am facing a weird problem with one of process taking more processing time in one system comparing to other systems. Most of the time is spending on read and write system call on problem host. I am ...
1
vote
3answers
57 views

Which program is altering my resolv.conf?

On Debian 8 stable, I add dns server IPs in /etc/resolv.conf but after some time they get overwritten. I don't have gnome installed (I use i3wm) and network-manager is not installed either. On ...
0
votes
0answers
14 views

Is there any way to read files from the virtual /proc directory using smbclient?

Is there any way to read files from the virtual /proc directory using smbclient? No root access. Both server and client are Debian Linux machines. Server is running Samba 3. Smbclient version is ...
0
votes
0answers
19 views

Why does my program screen dims down?

I wrote a program to run on Linux OS. I noticed whenever I ran the program and clicked on a button to open a window, sometimes the main application screen dims down. This doesn't happen on all the ...
1
vote
2answers
34 views

Wifi is not working on Linux Mint

I have a Dell Latitude E4310 laptop which ran Ubuntu for the last 4 years (with various versions). Recently I have installed Linux Mint (version 17), and afterwards the WiFi is not working. It was ...
1
vote
1answer
22 views

Cleaning up after installing libary

As part of installing ImageMagick and PDFtk I fetched tarballs and extracted them to my home directory. Went through install process and got both libraries working. If I run which on pdftk or any ...
-2
votes
0answers
14 views

How to write shell script code for display reserved memory space for application (buffer + cache) [on hold]

Anyone can help me how to write shell script code using the bash shell that perform the following functions: Display reserved memory space for application (buffer + cache). Display real used memory ...
1
vote
2answers
33 views

Triggering hardware interrupts by connecting parallel port pins 9 and 10 does not work

I want to trigger hardware interrupts as described in the book Linux Device Drivers by connecting pins 9 and 10 with a wire. I tried that but apparently there's no interrupt beeing triggered: cat ...
0
votes
0answers
9 views

Cylon Linux stuck on loading screen?

So, I have been trying to get a Linux distro for a while now called Cylon Linux. I heard about it from a website and looked into it. I downloaded the .iso file and burned it to a disk. I tried to boot ...
1
vote
2answers
10 views

Shell script exit code and logging

I have got following simple shell script, in which I am trying to send STDERR & STDOUT to both screen and log it in a file(test.log). Also, while exiting I am trying to exit with appropriate exit ...
3
votes
1answer
47 views

Linux doesn't drop FS Caches. Instead Memory starts Swapping

I'm quite confused about this behaviour of linux memory caching. total used free shared buffers cached Mem: 15953 14188 1765 64 ...
0
votes
0answers
10 views

How to transform a LFS system it to an (iso) installable system or live cd? [on hold]

I want to make my own lieux distro from scratch I want to build the kernel then crosscompile the kernel.. But my big problem is how I’ll make it installable after building it? (like Ubuntu, arch, deb ...
0
votes
0answers
16 views

systemd kill my processes before ExecStop completed

I'm trying to update my application to use it with systemd. When I have used Upstart, I've just create a /etc/init.d/myService script: #!/bin/bash #chkconfig: 2345 90 10 #description: myDescription ...
1
vote
2answers
15 views

Delete files that are not part of a bash array

Right now I backup the mysql databases using a cronjob everyday. Now that the server is getting full, I only want to keep one backup for every month, one backup from sunday every week and the last 7 ...
0
votes
0answers
42 views

How to make a fifo in C? [migrated]

I have to use mkfifo in my C program in Ubuntu. But I have an error when I compile: no such file or directory . I think the problem because I have not set the panel_fifo environment variables. But I ...
1
vote
0answers
49 views

Unable to mount a partition on an SSD over USB

I'm trying to mount a 120GB SSD connected externally via USB to the new server. The SSD is full of data and I can't format it. mount /dev/sdd1 /mnt/sdd1 mount: wrong fs type, bad option, bad ...
0
votes
1answer
24 views

“fdisk -l” output: what are Disk label type“ and ”Disk identifier"

fdisk -l output: . . Disk label type: dos Disk identifier: 0x0006a8bd . . what are Disk label type" and "Disk identifier" Also, apart from the manuals, where else can I find more information ...
1
vote
0answers
42 views

Linux randomly hibernates [on hold]

I'm facing some issues with Linux (Fedora and Ubuntu). First of all, when I installed Ubuntu it was sort of hibernating when booting then I installed Fedora, everything works fine, but when I boot the ...
2
votes
0answers
26 views

Thread running between fork and exec blocks other thread read [migrated]

While studying the possibility of improving Recoll performance by using vfork() instead of fork(), I've encountered a fork() issue which I can't explain. Recoll repeatedly execs external commands to ...
1
vote
2answers
36 views

Midnight Commander - editor in hex mode

I can't find a way to toggle mc internal editor in hex mode. Here it says to use F4 however it suggest to replace. How to do it?
0
votes
0answers
9 views

Linux Mint 17.1 Mate stops responding

I was using LM 17.1 Mate version quite smoothly until one day I found my desktop wallpaper had changed to the original. Then after refreshing for 2nd time it keeps on refreshing and it seems that my ...
0
votes
0answers
18 views

Error on login on Ubuntu 14.04 [on hold]

Now,before I begin,be prepared for a lot. I am having a on-login problem that, when "send a report" is clicked, goes away. But after a minute or two, I get a whole lot of mess of errors. Here is my ...