These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

-4
votes
0answers
18 views

Comparing two files Script in UNIX [closed]

I want a script for Comparing two files in UNIX and place an echo error in log file if the files are not matched from source to destination can anyone help me /?
3
votes
2answers
77 views

Systemd : How to execute script at shutdown only (not at reboot)

There is a lot of solution here to execute a script at shutdown/reboot, but I want my script to only execute at shutdown. I've tried to put my script in /usr/lib/systemd/systemd-shutdown, and check ...
1
vote
0answers
34 views

External Fragmentation in FreeBSD due to unmovable Kernel pages

Is external fragmentation an issue in FreeBSD due to unmovable Kernel pages similar to what Linux (1) (2) faces?
0
votes
1answer
30 views

Remove Some content from file in unix [closed]

I have a file which is having some names , i want to remove some of the names from it . eg the files has names.trg , i want to remove all the names ending with .trg how can i do that in unix ? ...
1
vote
2answers
28 views

Getting the original command invocation from /proc/self

I'm trying to run some startup code in all procesess via the dynamic linker. The code should do stuff based on the zeroth argument of the process. I'm getting the arguments from /proc/self/cmdline ...
1
vote
1answer
14 views

Best NFS scenario to both read and write at certain times?

The problem that I'm facing is that I have an NFS NAS that I use to store and export a home directory, media files like music, movies, etc. The critical things are backed up, so spare the comments ...
-2
votes
1answer
28 views

Can I install Kali linux with out Ethernet card

I want to install Kali linux on my Laptop, but I don't have a Ethernet card. It is possible to install Kali with out Ethernet or with wifi interface ??
0
votes
0answers
14 views

Performance problem Fedora 23 32-bit @ Dell D630 4GB/Nvidia

I have installed Fedora 23 32-bit at Dell D630 4GB with NVidia Quattro NVS 135M (nvidia.ko, not nouveau.ko). And I have permanent performance problem as X-Windows (Gnome) are very slow and laggy. I ...
4
votes
1answer
70 views

Why can't I execute Android x86 executables on Linux

I am trying to port Android apps to Linux (don't laugh :) and I have come across a problem. When trying to execute an Android executable (app_process) after adding the executable permission with ...
0
votes
1answer
36 views

Build Linux for a Raspberry Pi without /opt/vc?

Now that the vc4 DRM/GBM driver has been making progress, is it possible to build Linux (not just the kernel but the entire operating system eg. Linux From Scratch) without libraries and programs from ...
0
votes
0answers
37 views

Ubuntu 16 stop lightdm and start xinit/xterm

I am working with Ubuntu 16. I have been able to stop the desktop environment using: sudo service lightdm stop Now I would like to start, from another terminal in a console environment, the X ...
2
votes
0answers
14 views

WiFi card disappears after reboot, but not after cold boot

I have an Arch-based server (Zotac Nano, AMD Kabini-based) which doubles as WiFi access point using a miniPCI Atheros WiFi card. If I start it form cold boot (as in “it was off”), then everything ...
0
votes
0answers
13 views

Puppet Agent certificate issue

When iam trying to connect to master server from client this is what iam getting:- puppet agent -t Error: Could not request certificate: Error 400 on SERVER: The environment must be purely ...
-4
votes
0answers
33 views

Do you really need antivirus software for Linux desktops? [closed]

Recently i got free antivirus for Linux from Comodo. But right now i don't install my desktop & laptop. Really antivirus software required for Linux desktops / Laptop.
-1
votes
0answers
20 views

I like to create a command line database search tool.. [closed]

My aim is to create search tool in command line. I have a number of KB articles and default fixes for some issue maintained in my kjots. I want to create a command line search tool.. That will search ...
0
votes
1answer
18 views

How to use guillemets with us altgr-intl layout?

I've set up my keymap as US international with the following command: $ localectl set-x11-keymap us apple_laptop altgr-intl which I think is equivalent to the following setxkbmap command: $ ...
3
votes
5answers
309 views

Increment index in file

Alright, it seems I cannot find a way to do what I need. Let's say I have a text file A like this (freqBiasL2[27]) (SatBiasL1[27]) (defSatBiasL2_L1[27]) (defSatBiasSlope[27]) ...
0
votes
0answers
13 views

How to automatically generate the device file in linux [closed]

i have written an PCI Driver and inside probe function of it i have block register using register_blkdev(major, "expt"); But i cannot see any device file it has created in /dev directory. The vendor ...
-2
votes
2answers
49 views

find all jpg images from specific directory and copy it to other directory

How do I copy all the jpg images [files whose names end with .jpg] that exist in the directory /usr/share/backgrounds into to the jpg directory in /week/pictures/final/jpg then redirect any error ...
1
vote
1answer
186 views

What are the “cpu” and “memory” options on the mount command?

I found some mount commands in a shell script: mount -t cgroup -o memory none /path/XXX mount -t cgroup -o cpu none /path/XXX The question is what does the cpu/memory option mean? I search the ...
1
vote
0answers
19 views

How to rename boot options with dual boot

I have Ubuntu and Windows 10 installed side-by-side, and the BIOS tool that's installed on the computer is called "Aptio Setup Utility". How can I rename the boot options, not just for the OS I'm ...
1
vote
1answer
26 views

How to obtain counters for swap-in/swap-out on Linux?

I'm trying to obtain counters for swap-in/swap-out activity on CentOS 6. The intention is to feed raw data into RRDtool to generate graphs, and use it to generate alerts. I've had a look at common ...
1
vote
2answers
32 views

Search tool with file content indices

Are there any file search tools like gnome-search-tool (gui where I can select several options, like age of file, file-size, owner, etc) that uses DB indices for not only the file name but the file ...
0
votes
1answer
26 views

Install PostgreSQL 9.5 CentOS 7

I'm trying to install PostgreSQL 9.5 on CentOS 7. I've searched online and to get access to the 9.5 RPMs it requires installation of pgdg95 via the following command: sudo rpm -ivh ...
3
votes
1answer
60 views

What is the overhead of using subshells?

Hopefully this question is not too generic. I am very new to shell scripting and I come from a computer architecture/non-scripting programming background. I have noticed on the scripts at my work that ...
1
vote
0answers
26 views

How to have systemd-resolved correctly come alive after hot plug?

Setup I am playing with a small embedded board running Debian Jessie. I am using as much systemd stuff as I can, including the networking stuff. I have added the file: ...
0
votes
1answer
12 views

Cache not filling error when using mplayer to read from stdin

I have a program that's generating audio and I can't get mplayer to play it. I'm doing ./myprogram | mplayer - -cache 1024 -cache-min 30 -noconsolecontrols And I get the message Cache fill: X% (Y ...
2
votes
0answers
49 views

Sort mount points by mount time

With no command line arguments mount displays all mounted file systems, e.g.: /dev/sdy8 on /bar type ext4 (rw,relatime,lazytime,data=ordered) /dev/sdx6 on /baz type ext4 ...
0
votes
0answers
32 views

Make debian use dual network ports for a gaming server

I have a server that has 2 LAN ports (or internet ports or whatever you call them) and i was wondering if its possible to make Debian Linux to use both ports? I will need maybe a link or somthing. I ...
0
votes
0answers
16 views

Linux cluster file system issues [closed]

Redhat linux cluster GFS 2 mount is of size 1 TB but winscp is showing size of the directory as 101 TB. what could be the reason? RHEL 6.6, 4 node cluster
1
vote
0answers
32 views

Different mount output with and without initramfs

I need to create an initramfs to load a driver to access EMMC which contains the root filesystem. In my current kernel build, the EMMC driver is modular (sorry, can't change this). After the ...
-1
votes
3answers
26 views

Get compilate date [duplicate]

I am trying to extract the compilation date from a linux command (or cpp would be fine too). I am using: stat -c %z ./myProgram.bin However, if I copy myProgram.bin to an another place via ssh for ...
0
votes
0answers
33 views

FreeBSD or simply Docker for my old Linux server?

I have an old obsolete server running a Linux Red Hat server 5.9 and inside a special software for a power plant control and I've been asked to replace this server as not so much spare parts are in ...
1
vote
1answer
20 views

mkswap complains that partition is misalilgned (LVM on RAID-0)

I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had ...
0
votes
1answer
33 views

Full system backup with dd include symlinks

I'm really new in unix and Linux and just tried to learn something. My question is how can I make full system image/backup with dd include symlinks? Is dd good or I should use another approach? Can ...
3
votes
1answer
27 views

What are semi-files?

I'm reading a paper about Android/Linux. It contains a line I'm not able to understand. I tried searching about "semi-files" but nothing relative came up. Can someone please rephrase it or explain it ...
0
votes
0answers
14 views

Keep all jars in a folder running on jvm's as services [migrated]

On a remote server I'm having a folder which contains serveral jars. Each of it will represent an application, which will open up a port, on which a web-application is served. It might look like ...
-1
votes
0answers
20 views

Using specific driver version for the device jointly defaul driver [duplicate]

I have dongle USB-RS85 like this, based on CH340G. There is linux kernel driver ch341 that support this device (and create device /dev/ttyUSB0). But this driver does not support parity modes ...
1
vote
1answer
63 views

What to do if the owner of /usr/bin/* changes to a non-root?

It would be the right thing to say that I messed up! Accidentally, I changed the owner of all files in /usr/bin to 'dev' from 'root'. Now, sudo does not work! If I use sudo with any command, I get - ...
0
votes
1answer
37 views

How to forbid ssh connection after sudo -u

After ssh login, user with UserName makes $ sudo -u localusername -i and $ ssh localusername@someserver How to forbid ssh localusername@someserver for UserName via sudo -u localusername but permit it ...
0
votes
0answers
35 views

Linux + what are the steps use the oldest kernel version in place of the current

I have Linux red-hat 5 version I want to reboot the machine with the previous kernel - 2.6.18-408.el5 so I set the default to 1 but before I will reboot the machine to startup with the older kernel ...
1
vote
0answers
9 views

Trouble with linked libraries when installing mediainfo

I have mediainfo installed on a linux machine running busybox, but when I run the mediainfo command, I get the following output: mediainfo: /lib/libstdc++.so.6: no version information available ...
0
votes
1answer
30 views

Having problems updating after esx host problem

So I have a VM that had to be hard shutdown. I can't get the error to stop. CentOS 7.x latest [user@asm-dmz01 ~]$ sudo yum-complete-transaction --cleanup-only Loaded plugins: fastestmirror Loading ...
1
vote
0answers
24 views

Raspbian Jessie Lite “Factory Reset”

I am currently remoting offsite to my Raspberry and since I think I messed up all packages and configuration files I would like to return to default settings before installing all the packages and ...
0
votes
0answers
6 views

How to create a systemd Service for Consul in RHEL7 [closed]

I have setup a consul cluster and I want to make sure that the agent starts by itself whenever the server is restarted. In order to achieve this, I have created an Upstart Service at ...
1
vote
2answers
59 views

How to move from one filesystem to another without changing directory structure?

/dev/xvda1 is full so I want to move its contents onto my 30GB udev filesystem. Filesystem Size Used Avail Use% Mounted on udev 30G 4.0K 30G 1% /dev tmpfs 5.9G 768K ...
0
votes
0answers
17 views

cups restarted automatically

I have installed a cups service on a CentOS 7.1 64 bits. We have some problems with a printer and the only thing I can see on logs is /var/log/messages: May 18 12:11:37 isis systemd: Started CUPS ...
0
votes
1answer
13 views

How to use systemd-nspawn with pptp?

I would like to set a container use the vpn for only network interface. I have used the pptpsetup and pon make a pptp connection works, and got a ppp0 interface. Now, I want all internet connection ...
0
votes
0answers
22 views

What is the purpose of the symbolic `git` link inside the `/data/git` folder of the gogs docker installation?

Initially I asked this as a more generic question here: Is there a purpose to a symbolic link that points back to the directory containing it? Since it relates to gogs specifically I'm asking for a ...
2
votes
1answer
46 views

Is there a purpose to a symbolic link that points back to the directory containing it?

When Gogs docker installation is run it creates a symbolic link /data/git/git that points back to the parent folder: lrwxrwxrwx 1 1000 1000 9 May 13 19:37 git -> /data/git I'm ...