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

0
votes
0answers
8 views

Execlp() System Call

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. But it isn't executing my ...
2
votes
3answers
23 views

What does pwd return?

Does the command pwd in a shell script return the directory the shell script is in?
0
votes
0answers
8 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 ...
0
votes
0answers
7 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
7 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
18 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 ...
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 ...
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 ...
0
votes
2answers
21 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 ...
0
votes
0answers
16 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 ...
-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 ...
1
vote
0answers
5 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 ...
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
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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
5 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 ...
0
votes
1answer
18 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 ...
0
votes
2answers
21 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 ...
-1
votes
1answer
22 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
4 views

conky variables in downspeedgraph

How can I use a color variable in my .conkyrc Content : color_var = FF00FF ${color_var}Name ${downspeedgraph wlan0 32,175 ffffff ffffff} How can i replace ffffff by for example color_var A ...
2
votes
1answer
22 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 ...
1
vote
1answer
23 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
24 views

I cannot open up my flash drive

I have a flash drive that has a storage space of 8GB, a mark of ASA MANHATTAN. When I plug it in my computer, I get the following message: This location could not be displayed. Sorry, could not ...
1
vote
0answers
11 views

How should the `crypto` kernel parameter be passed?

I've encrypted a root drive using a cipher with this format: <cipher>-<chainmode>-<ivmode>:<ivopt>. Let's call this [CIPHER] for short. To boot from this device, certain ...
0
votes
0answers
8 views

how to remove a RFL_SourceSumbission_20150901 - header .csv [duplicate]

I have created csv file like RFL_SourceSumbission_20150901 - header .csv. I am able to delete other csv files which created normaly but i am unable to remove RFL_SourceSumbission_20150901 - header ...
0
votes
0answers
11 views

MySQL Cluster node crashed, how to re-add in cluster?

We have 2 data node in mysql cluster, and one of them got crashed (totally). I have re-install new OS and now i want to re-add same node back to cluster. How to do that without re-starting whole ...
0
votes
1answer
25 views

Linux file system corruption due to improper shutdown (fs ext4)?

I have been managing many Linux servers, It is very easy to play with Linux servers than any other OS. But Sometime I encounter a problem with Linux OS is that, The file system corruption. This ...
3
votes
1answer
31 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 ...
1
vote
1answer
34 views

linux unbuffered compression options

I'm working on a embedded system and due to persistent memory restrictions, I need to compress a log file "on the fly". My objective is to have a one liner inside a script, which would look like ...
3
votes
3answers
31 views

kernel configs and dependencies

When a particular kernel config is turned on, e.g. CONFIG_CRYPTO_FIPS=y a bunch of other dependencies (CONFIG_XXX_YYYY) get turned on during compilation. Is there a way to know all the dependencies ...
0
votes
1answer
33 views

Listing files with a certain extension

I'm suppose to write a command that would list all files that end in .tx with an optional t at the end. So far all I got is listing the files that end in .tx which is: ls *.tx Now my problem is ...
0
votes
0answers
14 views

Create iso Frame buffer video [on hold]

How to create a ISO and only frame buffer video console? (Example: archlinux, fedora, debian, Ubuntu, etc)
1
vote
0answers
15 views

How to programmatically change a password on an IPSwitch server using a Linux client?

One of my companies customers runs an IPSwitch sftp server, and they have disallowed public key authentication, and require us to change our password every 90 days. The problem is that, I cannot see ...
0
votes
1answer
39 views

netstat shows over 44K connections without ip address, what's that?

I have a question about linux netstat usage and output results. I'm trying to solve a dilema about why my server is facing communications delays and bottle neck issues, So I started digging and ...
0
votes
0answers
2 views

How to access usb otg files from Kali Nethunter terminal Nexus 6 [migrated]

I have a rooted Nexus 6 running Marshmallow 6.0.1 and with the Kali Nethunter overlay installed. I want to execute some files that are in the usb otg from the Kali terminal, but I don't know how to ...
0
votes
1answer
26 views

Give the command to remove duplicate lines in a .txt file and save the new file as new.txt file

I'm trying to do this but I cant create the file. I enter: sort myfile.txt uniq -u | tee newfile.txt and It wont create the file automatically. What am I missing here?
1
vote
0answers
32 views

mount: special device /dev/sda1 does not exist

I had a CentOS 6 server suddenly lock up on me after doing about 2 weeks of calculations for a project. Upon reboot, the machine would crash while attempting to mount the devices listed in the fstab ...
0
votes
1answer
24 views

Linux not using default route [on hold]

I'm no Linux expert, though I use it regularly. So can someone throw some light on the following behavior. I would expect traceroute to have the first hop as 192.168.1.160 ian@ubuntu-mini:~$ ...
0
votes
0answers
21 views

changing file and folder permissions for network shares

I am fairly new to linux but used it before and know bit about the command line etc... I am trying to set up a folder in which everyone has their own username and password with each folder, I have ...
1
vote
0answers
19 views

understanding output of strace of empty c program [migrated]

int main(int argc, char *argv[]) { return 0; } Given the above C program, I get the following the output using clang test.c ; strace ./a.out. execve("./a.out", ["./a.out"], [/* 36 vars */]) = 0 ...
0
votes
3answers
50 views

Linux + how to verify the CPU performance

I have few servers that I manage in my origination ( red-hat 5 ) my users complain about the bad CPU performance grep processor /proc/cpuinfo processor : 0 processor : 1 can I ...
0
votes
1answer
32 views

How do kthreads actually work?

Need to implement DHCP server in kernel space. It's supposed to be a multithreading server, and I think I should use kthreads ( I'll be glade if you know better decision ). However I can't understand ...
0
votes
0answers
22 views

Infrastructure Documentation tool [on hold]

Is there any open-source tool that can be used for IT hardware infrastructure documentation with some additional services such as automatic updates for new hardware , mutual dependencies , networking ...
0
votes
0answers
19 views

respawn with arguments and tty3 without root?

Please bear with me as I am not a Linux guy. I am trying to start a application to run in a terminal that I can ssh in and conspy to see the activity and also respawn if there is a crash. I have a ...
0
votes
1answer
34 views

Exporting a Variable from bash script does not work, does work if I change the variable to any other name [on hold]

This is the strangest behaviour I have ever seen. I know you might be shocked to see the below explaination but yes this is happening. I'm trying to export a variable name which is LON_GEMINI_BOX ...
0
votes
0answers
16 views

Autocomplete in browsers doesn't work on Linux

I have several websites which use autocomplete in their forms. For example, after logging in to an invoicing website I can type in the client field several letters (3-5) and then the box with list of ...
0
votes
1answer
28 views

Determine which network interface to use based on target IP

Say I have two network interfaces, eth1 and eth2, both of them connected to a different ISP. How can I instruct linux to use eth1 for all traffic to the IP 111.222.111.222 while eth2 is used for all ...
0
votes
1answer
20 views

How can I configure the serial port under debian 8.3 on HP Server?

If there is no Monitor I can access via the serial RS-232 port on Debian/GNU/Linux 8.3! How can I configure the serial port under Debian 8.3. It should be possible already during the boot from Debian ...