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
6 views

Minimal Busybox/Linux Installation - Won't Run C

I'm trying my hand at creating a very minimal custom Busybox/Linux distro, a task that is admittedly above my head, but I figured I'd give it a shot. My issue is that whenever I try to run a C program ...
-1
votes
0answers
8 views

moving directory using relative-to-home pathname

sample_dir1 -- sample_dir |-- admin |-- cambridge | |-- cafeteria |-- library |-- faculty |-- history.exe |-- markham | |-- annex | |-- annex2 | |-- ...
-3
votes
1answer
20 views

How do I copy a directory into its own subdirectory? [on hold]

For example: sample_dir1 has a sub-directory sample_dir. I want to move sample_dir1 to sample_dir, how would I do that? sample_dir1 `-- sample_dir |-- admin |-- cambridge | |-- ...
0
votes
0answers
6 views

Can't access to trash?

Whenever I try to enter into Trash Bin in Nautilus when a file is in it, an error message will display: Sorry, could not display all the contents of trash:///: Operation not supported. Neither sudo or ...
1
vote
0answers
6 views

Verifying kernel modules using a list of hashes

I'm interested in preventing replay attacks on kernel module verification. I feel that using a list of hashes of kernel modules would be better for this than using digital signatures. My Motorola ...
1
vote
2answers
24 views

Help creating script to move files based on date or filename

I have an FTP process that is constantly putting files into a directory. The date created is part of the filename in a format like this: YYYY-MM-DD-HH-MM-SS-xxxxxxxxxx.wav I would like to move the ...
0
votes
1answer
6 views

Photoshop CS2 doesn´t work on Linux Mint 17 via Wine (initializing tools forever)

Currently trying to install Photoshop CS2 via Wine on an Linux Mint 17.3 Cinnamon 64-Bit x86_64. ---------------------------------what I tried so far---------------------------------- I tried ...
1
vote
3answers
16 views

How can i check my running OS in VPS in Debian 8 64Bit

I have installed Debian 8 64Bit in my VPS. If I need to know what the bit of OS install in VPS command is uname -a and for OS information lsb_release -a. But in Debian Linux distribution the uname -a ...
1
vote
1answer
30 views

Bash: Iterating 2 lists using single For In loop

Suppose I have 2 seperate loops for file1 in `ls Dir1/` ; do echo $file1 done for file2 in `ls Dir2/` ; do echo $file2 done I want Single loop to iterate both Directories pseudocode for ...
0
votes
0answers
13 views

Is AWS AMI 'apache' equivalent to Ubuntu 'www-data'?

I'm trying to convert a Chef script thats used in AWS OpsWorks for an Ubuntu system to a script I can use with my AWS OpsWorks setup for my Amazon Linux AMI installation. Their Ubuntu Setup: sudo ...
1
vote
2answers
19 views

Cannot open both root terminal and nautilus (in Debian 7) after updating Intel Graphics Driver

I am a beginner on Linux. I bought a laptop (Asus, i686 architecture) only with pre-installed Debian 7. However, then I found that when I moved mouse horizontally, the screen shakes horizontally as ...
0
votes
1answer
46 views

Which major contributions did GNU make to the GNU/Linux OS? [on hold]

I read in the GNU/Linux FAQ, that one of the reasons they are asking everyone to call the whole system GNU/Linux is: Pricipal & major contribution of GNU in developing the operating system. ...
-2
votes
1answer
18 views

System call Execlp() [on hold]

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. ...
6
votes
1answer
47 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 ...
0
votes
1answer
30 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 ...
1
vote
2answers
24 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.
0
votes
1answer
6 views

How to use NVIDIA CUDA on poky/yocto based linux os?

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 ...
0
votes
2answers
21 views

Extends partition using another disk [on hold]

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 ...
0
votes
1answer
18 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 ...
3
votes
1answer
36 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
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
1answer
27 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
5 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 ...
-4
votes
1answer
35 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 ...
2
votes
5answers
1k views

What does pwd return?

Does the command pwd in a shell script return the directory the shell script is in?
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 ...
0
votes
0answers
16 views

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

I want to add my own custom grub2 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 ...
3
votes
0answers
13 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
22 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
27 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
24 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
1answer
24 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
23 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 ...
0
votes
1answer
12 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
38 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
28 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
8 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
23 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
28 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
27 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

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
27 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
26 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
28 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
12 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
12 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 ...