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

0
votes
0answers
3 views

Implementation of process substitution, and concurrency in process substitution

Bash Manual says Process substitution is supported on systems that support named pipes ( fifos) or the /dev/fd method of naming open files. Does it mean that process substition is implemented ...
0
votes
1answer
18 views

Different hostname / prompt is shown after logging in as root

[mayur@centos ~]$ su Password: [root@centos mayur]# I want it to be "centos" only. How to do it?
0
votes
1answer
30 views

how to read all bios settings in linux programmatically

I don't think that dmidecode shows all the bios settings . Is there a way to read all the bios settings programatically in SLES?
0
votes
1answer
17 views

have file tempfile2.gz (checked via file command) but gunzip/gzip -d does not work

I had a file (was a text file at first), did xxd -r to it and saved it to tempfile2. Afterwards did file tempfile2 and it wrote: tempfile2: gzip compressed data, was "data2.bin", from Unix, last ...
0
votes
2answers
31 views

How to extract first and last lines in a file? [duplicate]

File1 Sergio Lionel Luis Andreas Gerard I want my stdout to have just Sergio Gerard How can I do this using the tail command and piping?
3
votes
0answers
38 views

Why group-writable file works “unidirectionally”?

Users vi and rust share group rust and want to use some file in shared manner. rust$ ls -l myfile -rw-rw-r-- 1 vi rust 0 May 30 03:48 myfile rust$ stat myfile | grep Gid Access: (0664/-rw-rw-r--) ...
0
votes
1answer
56 views

sddm presents wrong theme

The problem is that I am presented with a different sddm theme when I logout. The default theme works fine when login. However, one of the pre-installed themes is used when logout the system. Is ...
0
votes
1answer
77 views

Dual booting Ubuntu and windows 7

I am trying to dual boot Windows and Linux on a machine at work. While I haven't used windows in a while, It is a process that used to work most of the time. But I haven't been as lucky with this ...
1
vote
1answer
107 views

Use existing encrypted directory as home directory

In the past, I installed Ubuntu 12.04 with /dev/sda4 mounted as /home. I encrypted my home directory. Today, I erased all the partitions except /dev/sda4 and I installed Xubuntu 14.04 on a new ...
2
votes
0answers
7 views

RMTP Streamig to Twitch

Im streaming using OBS on Windows (QuickSync), pushing 20k bitrate to 2nd PC based on linux (Debian Jessie 8.4.0, 64bit) in local network area (1gbps lan link). Debian Jessie is a minimal linux ...
3
votes
1answer
864 views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
1
vote
0answers
11 views

Kali 2 interrupted installation problem

I'm new to dual booting with Kali 2 and Windows 10 and I was wondering if you can help me out with my problem: The problem is that i encountered this error: error: file ...
1
vote
0answers
33 views

Bash script, string spaces handling [duplicate]

I'm writing a script that will automatically sort my albums on my NAS server and encountered the following error. Whenever I have a space in an album name I'm getting an error. Albums can be either ...
1
vote
2answers
28 views

All possible combinations of words in different files in pairs

I have multiple files, let's say file1, file2 etc. Each file has one word in each line, like: file1 file2 file3 one four six two five three What I want is to combine them in a new file4 in ...
1
vote
0answers
13 views

Is this possible to use a different rootfs that the one kernel comes with?

Here's the situation: I have a compiled zImage that comes with its own rootfs that contains linuxrc. I can extract it using this script. I would like to modify some startup scripts that are part of ...
3
votes
4answers
3k views

running kernel on QEMU

I face this message: Failed to execute /initKernel panic - not syncing: no init found. Try passing init=option to kernel. I am using this command line: qemu-system-x86_64 -hda disk.img -kernel ...
1
vote
0answers
13 views

Booting and installation problem. Windows 8 and Ubuntu 16.04

I installed Ubuntu. But. I couldn't boot back into windows (not shown at the grub) until I put this into the terminal: sudo apt-get install lilo sudo lilo -M /dev/sda mbr It was a success. I ...
1
vote
1answer
9 views

Push firmware files in ath10k to Debian firmware-atheros

I would like to quote wireless.wiki.kernel.org: The ath10k firmware images are available from linux-firmware.git which all common Linux distributions should install by default. Latest firmware ...
-2
votes
1answer
39 views

Install a package from SSH

This is my first experience with Linux. I want to install a package (named screen) and I have access to a SSH login which I use putty on Windows to do so. Is there a way to install screen from putty ...
27
votes
4answers
52k views

How to make log-rotate change take effect

I followed this link to change log-rotate configuration for RHEL 6 After I made the change to config file, what should I do to let this take effect?
0
votes
1answer
22 views

Unable to install curl on Debian

I am trying to install Curl on Debian but unfortunately I get the following error: The following packages have unmet dependencies: curl : Depends: libcurl3-gnutls (= 7.47.0-1) but 7.38.0-4+deb8u2 ...
2
votes
2answers
34 views

Incorrect permissions on special files

I've noticed a lot of special files on Linux have what appears to be incorrect permissions: E.g.: $ ls -l /dev/fuse crw-rw-rw- 1 root root 10, 229 May 29 09:59 /dev/fuse appears writable but in ...
0
votes
0answers
16 views

Booting into Windows 7 from grub rescue (no Windows DVD)

There's a lot of info already out there on this question, but not all of it seems to agree and as a Mac user primarily (I use Windows/Linux only for things that don't run on OSX) I'm not too confident ...
0
votes
3answers
76 views

How to check disks at startup (alternative to chkdsk c: /f on Windows)

How to check my 2 disks at startup (they're in BIOS RAID1)? I am on Mint 17.2. computer user # blkid /dev/sda1: UUID="6042-870C" TYPE="vfat" /dev/sda2: UUID="2ef42e6f-4987-46e5-aca9-872fd70a9f9e" ...
37
votes
8answers
12k views

Block network access of a process?

Is it possible to block the (outgoing) network access of a single process?
0
votes
0answers
12 views

Partitioning (format) problems with LiteOn PCIe SSD

I recently got a HP Z Book 15 g2. That model has two disks, one of them (in my model) is a LiteOn PCIe SSD (Liteon CX1 JB256 HP). I want to install Linux on that particular disk. First, I tried with ...
53
votes
7answers
35k views

How can I see dmesg output as it changes?

I'm writing a device driver that prints error message into ring buffer dmesg output. I want to see the output of dmesg as it changes. How can I do this?
0
votes
3answers
35 views

How do non-interactive programs get the permission to edit files in /etc

I'm writing a program in python that needs to edit some files in /etc. Some system some its own. How do I get those permissions from within the program itself without running sudo as the program ...
46
votes
5answers
69k views

Manually generate password for /etc/shadow

I need to manually edit /etc/shadow to change the root password inside of a virtual machine image. Is there a command-line tool that takes a password and generates an /etc/shadow compatiable password ...
0
votes
0answers
20 views

awk used for duplicate is failing while recreating same file [duplicate]

When i am running command below its just vanishing the complete data from the appirx.txt. Can any one explain the mechanism behind it.It might be basic question awk '!seen[$0]++' appirx.txt > ...
3
votes
1answer
84 views

Emacs X11 Forwarding does not work but xclock does

I'm launching a X server with Xquartz (OSX 10.10.5) using Terminal.app, and I'm trying to connect to a EC2 instance with: ##local $ echo $DISPLAY ...
-1
votes
0answers
11 views

To grab the current proxy that the machine is using in linux environment [on hold]

I need to grab the below proxy information from all the Linux machines - Proxy Hostname - Proxy IP address - Port - Proxy Serial # - Client IP - Client Logged In As - Groups user is member of I ...
-1
votes
4answers
33 views

How to show previous line to matching pattern with grep and not the matching line? [duplicate]

I know I can use -A, -B and -C to show surrounding lines but all of them also show the matching line. What I'm trying to make here is so, in this example file: foo bar I'd be doing something like ...
9
votes
3answers
61k views

mount error 13 = Permission denied

One of my servers is set up to automatically mount a Windows directory using fstab. However, after my last reboot it stopped working. The line in fstab is: //myserver/myfolder /mnt/backup cifs ...
1
vote
0answers
7 views

How to enable IOMMU on Gigabyte 990FXA-UD5 R5

I've enabled svm and iommu in the bios, but I get "not available" from dmesg: root@xen:~# dmesg |grep -i iommu [ 0.000000] Command line: placeholder root=UUID=0b6a99ef-b56b-4d71-9f63-4895d0276674 ...
1
vote
1answer
3k views

Trouble switching from DHCP to a static IP on Kali Linux

When I installed Kali Linux 64bit, I forgot to set up a static IP address, and now DHCP determines my address with my router. I have already modified /etc/hosts and /etc/network/interfaces to declare ...
0
votes
1answer
17 views

The last log for reboot appeard twice

Does anyone know what's the meaning of my last command? reboot system boot 2.6.32-431.11.2. Sat May 28 15:06 - 05:01 (1+13:54) reboot system boot 2.6.32-431.11.2. Sat May 28 05:03 - 05:01 ...
2
votes
3answers
148 views

Root, home and boot partitions

So I had been considering that partition is like a separate section of space. Recently, I decided to experiment with partitions and found a flaw in my understanding. Some examples refer to a case ...
5
votes
1answer
4k views

Understand the Route table

I just setup the OpenVPN and it is working as expected. However, the routing table of the client is confusing me to no end. Here is the route table: # route -n Kernel IP routing table Destination ...
0
votes
0answers
14 views

Cloud Linux Reboot Fail [on hold]

I have recently installed cloud linux, When I reboot the server by initiating the reboot command through ssh, the server does not work. I cannot access the server through SSH or anything.
1
vote
1answer
821 views

Accessing Macintosh HD from Ubuntu

So after I upgraded my MBP to Yosemite, I have lost dualboot. After a long struggle, I finally reinstalled refind to work properly. Unfortuantelly, when I use Ubuntu, I cannot access Macintosh HD ...
1
vote
0answers
17 views

Typing { } on Debian in VirtualBox on OSX [on hold]

I have a OSX with VirtualBox and a virtual machine with Debian. In the virtual machine I'm not able to type those brackets {}. Any help ? I have an Italian keyboard on my Mac.
-3
votes
0answers
19 views

Mouse double clicking when I only single click [duplicate]

My mouse registers a double click sometimes when I only single click. I don't want to buy a new mouse. Is there a software fix for this on Linux? I have been looking for a shell script, but no luck. ...
2
votes
2answers
29 views

Multiple tmpfs partitions

[mayur@mayur311-pc ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 3.6G 47G 8% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs ...
2
votes
3answers
39 views

Get file modification time in yyyymmddhh24miss format

I want to get the modification time of a file in a specific format. How can I do that ? I know about stat -c %x find.txt but I need this format: yyyymmddhh24miss I'm using ksh on Linux ...
1
vote
1answer
21 views

Why the 1MiB should be used when setting the first partition?

As the arch install guide suggests (using parted to do the partitioning) (parted) mkpart primary ext4 1MiB 100MiB However, when checking the output of fdisk, the start of the partition is not ...
0
votes
0answers
23 views

Why is a 'Trusted Network' Port More Secure?

I'm working through this tutorial ATM. http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html I'm planning on using NGINX for a simpler scenario but I'm curious as to why the tutorial ...
2
votes
0answers
24 views

GPU pass-through KVM Fedora 23

I am attempting to pass a GPU to a windows 10 VM running on a Fedora 23 host: Virt-manager Host: Fedora 23 Guest: Windows 10 64 bit guest UEFI OVMF GPU: R7 AMD Radon 250 is the GPU that I am ...
33
votes
2answers
29k views

What is difference between User space and Kernel space?

Is Kernel space used when Kernel is executing on the behalf of the user program i.e. System Call? Or is it the address space for all the Kernel threads (for example scheduler)? If it is the first ...
0
votes
1answer
36 views

Functionality of first version Linux? [on hold]

When Linus posted the very first original version of Linux (that he sent to a mailing list) - how much functionality did it have? What could it do and what couldn't it? I supposed that it didn't have ...