Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

-2
votes
0answers
6 views

System call Execlp()

I have created my own shell in Linux.It takes path of file and command. It operates simple commands like grep ls etc. It uses execlp() system call. e.g /bin/ls ls < this command executes properly. ...
2
votes
1answer
22 views

How does linux load firmeware for built-in driver modules

I've learned that the firmware-subsystem uses udevd to copy a firmware to the created sysfs 'data' entry. But how does this work in case of a built-in driver module where udevd hasn't started yet? ...
0
votes
2answers
14 views

Extends partition using another disk

I have A 100GB SSD that I use for root partitions. I have 1TB disk. I'm running out of space on the SSD partition. Can I extends its size using the other disk. I know I can move the /home partition ...
2
votes
5answers
534 views

What does pwd return?

Does the command pwd in a shell script return the directory the shell script is in?
0
votes
0answers
7 views

Which are the major components of GNU in the GNU/Linux OS?

From GNU/Linux FAQ, I found that one of the reasons that they are asking everyone to call the whole system GNU/Linux is: Pricipal & major contribution of GNU in developing the operating system. ...
1
vote
4answers
25 views

Sort files by highest number in filename

I've got a bunch of files all named like this: name_file-1.txt name_file-2.txt name_file-3.txt some_other_file-1.txt some_other_file-2.txt There are thousands of different filenames, some with just ...
1
vote
0answers
5 views

Is it wrong to link /dev/random to /dev/urandom on Linux?

I'm currently testing gpg --genkey on a Linux VM. Unfortunately, this software seems to rely on /dev/random to gather entropy and politely asks the user to manually type screens after screens of ...
-4
votes
1answer
30 views

Execlp() System Call [on hold]

I have created my own shell in Linux.It takes path of file and command and operates simple commands like grep ls etc. e.g /bin/ls ls < this command executes properly. ls < this command does ...
0
votes
1answer
13 views

How to hide Login/Pwd into shell?

I've a Shell script(.run) that let me to connect into Oracle sql : echo whenever sqlerror exit | sqlplus Login/Passwd@SERVER @"TABLE1.sql" echo 'return code : ' $? I'd like to hide ...
0
votes
2answers
10 views

What is the default memory allocation for shell process by linux

What is the default memory allocation for shell process by Linux , i mean is there any upper limit for shell process or any process.
1
vote
2answers
777 views

Adding new attribute to existing xml file using sed or awk

I have a xml file which contains below details: <server> <mbean code="WSMQConnectionFactory" name="service=MQQueueConnectionFactory"> <attribute ...
0
votes
0answers
3 views

How to use NVIDIA CUDA on an unsupported linux distribution?

I have an NVidia Jetson TK1 Development board (ARM Cortex A15) which has a Keplar GPU that supports CUDA. I want to do same image processing on it with OpenCV 3.0 using CUDA. Reading through the ...
4
votes
2answers
281 views

Is Scanner Canon Pixma MG2450 supported in Linux?

The Cannon Pixma MG2450 printer has an integrated scanner that should work with a tool like Simple Scan (or Xsane, Skanlite). I have the proper drivers (provided by Canon: scangearmp-common and ...
0
votes
0answers
10 views

Checking Hardware RAID 5 status from Linux

I have a Host in DC (Data Center), I want to check the Hardware RAID status of the below mentioned host. Is there any third party Package which can give me the status of the failed disk or online Disk ...
1
vote
4answers
111 views

Split comma separated list ignoring commas within matching {}

I want to split a csv, but ignore any commas within matching curly brace groups, and loop through each of the list members. The code below works great but does not consider commas within curly brace ...
0
votes
3answers
137 views

Red Hat Enterprise Linux 6 wakes up spontaneously after sleeping

I have a Lenovo ThinkPad T430 running Red Hat Enterprise Linux 6.5. Today I put my computer to sleep, double checked 10 seconds later, only to find out after arriving to my office that my computer ...
0
votes
1answer
22 views

Reading file using shell script, format of the line has changed

I am reading a file using the following code: displayLine(){ echo $line } filename="SampleFile" while read line do displayLine $line done < "$filename" The format of the file that I am ...
0
votes
3answers
21 views

How to bulk compress different sub-folders?

I have a folder all_folders which contains 5 folders: ./all_folders ./all_folders/folder1 ./all_folders/folder2 ./all_folders/folder3 ./all_folders/folder4 ./all_folders/folder5 Can I compress all ...
3
votes
0answers
22 views

Cgroups Memory Related Questions

1) Why cgroup is showing more number of tasks than actual number of tasks.? Ex : [root@localhost proc]# ps -aux | wc -l 421 [root@localhost proc]# cat /sys/fs/cgroup/memory/tasks | wc -l 539 2) ...
0
votes
0answers
2 views

Start Graphical User Interface mode in oracle linux OracleLinux-R7-U0-BETA-Everything-x86_64

I have gone through oracle's documentation here http://docs.oracle.com/cd/E52668_01/E54695/html/index.html but coundn't find a content where it states starting a gui in oracle linux. I have tried ...
0
votes
1answer
24 views

Linux Mint + FriendlyARM 2440: Cannot install and execute cross-compiler and toolschain (arm-linux-gcc-4.4.3.tar.gz)

I am new to learning Linux. I have installed Linux Mint 17 on my 32-bit laptop and bought a FriendlyARM Mini2440 development board to do some basic programming and learn concepts of Linux. However, i ...
0
votes
1answer
685 views

Understanding high load average with vmstat, mpstat, sar, and top

I am trying to understand the load average on my system when idle. Here are some results after the system has been running for a few hours, with almost nothing installed. vmstat root@arm:~# vmstat ...
10
votes
3answers
27k views

How to read the local DNS cache contents?

I know that on Windows I can issue ipconfig /displaydns and I see the local DNS's cache content. How can I list the DNS's cache content in Linux? I would like to get as much as cross-distro solution ...
88
votes
12answers
270k views

How do I set my DNS when resolv.conf is being overwritten?

Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
0
votes
1answer
22 views

GNU screen locked, how to unlock?

So here's what happened: I ssh to the server with a normal user I run sudo -i I run screen Then I accidentally locked the screen session. to unlock it, it asks for root's password not the ...
1
vote
1answer
25 views

All files created in directory should be owned by bob

I'm looking to have all files in a directory owned by bob. I'm aware I can chmod g+s to get the group set on new files but I don't think I can do anything like that for the user. This is what I've ...
0
votes
0answers
10 views

Unable to use Nautilus

I've got Trisquel 7 GNU/Linux distro, with GNOME 3.8.4. I'm finding impossible to create a folder in Nautilus, or drag and drop files into the Desktop, out of other options. I find this quite ...
3
votes
4answers
4k views

Given vmlinuz and initrd.gz, how do I find out, where the kernel is going to load / (root) file system from?

I'm trying various ways of Linux installation (from iso, flash, iso on flash, kernel on flash, root FS in iso-file on flash...) and want to understand what's going on. My question is: is it possible, ...
2
votes
2answers
25 views

Installing Linux on external drive, then booting up a different machine with it

So I have a machine that I want to install Linux on but for some reasons I won't get into, I can't. What would happen if I hook up an external drive to my laptop, install Linux on it, then plug that ...
0
votes
0answers
9 views

GRUB2: adding insmod xxxx module in the grub.cfg properly

I want to add my own custom module, for ex. xxxx.mod into the grub.cfg. How can I do that? For example, here i want to add insmod xxxx.mod below: ### BEGIN /etc/grub.d/10_linux ### menuentry 'CentOS ...
2
votes
0answers
8 views

FIPS mode, signature verification failed

I am building a kernel with FIPS mode on. I followed most of the procedures described on Red Hat documentation here. I also created a hmac signed .vmlinuz file. After installing dracut-fips and ...
0
votes
0answers
8 views

Unexpected single-quotes in file name [duplicate]

Original post over here: http://stackoverflow.com/questions/35350216/unexpected-single-quote-in-file-name Basically, it seems that ever since I accidentally overloaded my filesystem (it's not ...
0
votes
1answer
21 views

nohup nice job aborted when disconnected

I've learned that "nohup" command allows the command to keep running if you lose your connection or need to logout. I'm running "nohup nice my command &" in remoter through shh, and after my lap ...
1
vote
0answers
7 views

Setting umask of libvirt/virt-manager for proper permissions in a directory shared by host and guest

I'm attempting to create a directory that is fully available to both the host and guest systems of a virt-manager/libvirt/QEMU/KVM virtual machine, with read, write and execute permissions for ...
1
vote
2answers
3k views

Unable to install anything on a linux on HP t610 Thin Client

I'm trying to install a Dymo Label Printer on HP t610 Thin Client which has a light read only Linux on it and is connecting to a Citrix environment for users to bring up their virtual desktop. I ...
23
votes
2answers
16k views

What is the proper sudoers syntax to add a user?

According to the comments in /etc/sudoers (Fedora 13): ## Syntax: ## ## user MACHINE=COMMANDS ## ## The COMMANDS section may have other options added to it. My two related questions: What ...
0
votes
2answers
22 views

sed + add comment to IP - only if IP is matched exactly

my target is to add "#" to the IP's with sed, But Only if IP is matched exactly!!! for example: sed 's/72.16.90.12/#72.16.90.12/g' /etc/hosts more /etc/hosts 72.16.90.121 host1 ...
-1
votes
0answers
12 views

Location of interrupt vector table in Linux kernel v4.4 [on hold]

I'm trying to find where the vector table is set inside of the kernel, but I haven't had any luck locating it. I have a feeling it is located under arch and is one of the architecture dependent ...
1
vote
1answer
21 views

sed + update 4 different IP's in hosts file in one sed command

how to run the follwoing sed command in one command line? sed -i s'/12.1.0.11/#12.1.0.11/g' /etc/hosts sed -i s'/12.1.0.12/#12.1.0.12/g' /etc/hosts sed -i s'/12.1.0.21/#12.1.0.21/g' /etc/hosts ...
3
votes
2answers
415 views

Can AIDE scan a directory inside a directory the user doesn't have read permissions for?

I would like to use AIDE to help me verify the integrity of my home directory on a shared Linux system. I am not an administrator of this system. I have built and installed AIDE in my home directory ...
0
votes
1answer
11 views

unable to detect newly added lun in rhel4

Unable to detect newly added lun in RHEL4 running with 2.6.9-103.ELsmp..Tried LIP protocol but that didn't helped echo "1" > /sys/class/fc_host/hostx/issue_lip Any help is appreaciated
1
vote
0answers
7 views

wvdial and ppp connection drop out issues

I am using a serial port based 3G modem to connect to the internet on my system running on ubuntu 12.0.4 LTS. One issue that I am facing is that after some time (like 3-4 hrs of connection ...
-1
votes
1answer
37 views

How can I mount a disk without formatting it?

I have a disk filled with my precious data which was mounted in a machine. I want to mount this disk into another machine and read the data in it. It seems I have to set the disk partition and format ...
3
votes
1answer
32 views

How can I get the amount of available memory portably across distributions?

The standard files/tools that report memory seem to have different formats on different Linux distributions. For example, on Arch and Ubuntu. Arch $ free total used free ...
0
votes
0answers
27 views

How to execute a command after ssh login via batch file

I want to execute a set of commands at once I login to a ssh session everytime via a batch file. Eg: start putty.lnk -load "session" -ssh username -pw password -m <commands> Here I am using ...
-1
votes
1answer
23 views

Need a script for adding bulk IP aliases in CentOS [on hold]

Need a script for adding bulk IP aliases in linux server (CentOS 6.7) As we manually add for eg. ifcfg:eth0:1 but adding 150 to 200 interfaces manually is a lengthy work. SO need a script which will ...
0
votes
0answers
6 views

Archlinux Raid Setup

So I want to setup a raid setup with 2 drives but I want to have the possibility to upgrade along the line. I watched a video on Linus Tech Tips today and saw he used a Raid card with 2 SAS ...
12
votes
2answers
8k views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
0
votes
2answers
24 views

Problem in installing new software - RHEL6

I am currently having difficulty in installing new software/plugins on my rhel6 work pc. I don't have any internet connection on it and have to download anything I require on a separate internet PC ...
2
votes
1answer
25 views

Found Duplicate PV in LVM disk scan

I have a VPS, and I attached another hard disk to it. It contains the same partitions I have on my current disk; it has / and /boot and swap. I need all data on the / partition. Here is the output of ...