0
votes
0answers
3 views

Memoizing/caching command line output

I have a bash script I use to run a few python and C++ programs in a sequence. Each program takes in some input parameters which I define in the bash script. So as an example I run the program like ...
-1
votes
0answers
7 views

000-default.conf file is not the same on Wheezy and Jessie

I am trying to set up CGI-BIN on apache2 web server, but I figured out that 000-default.conf file is not the same on Jessie as it was on Wheezy, am I missing something?
0
votes
0answers
1 view

How to clean install and dual boot/multi boot windows 10 Ubuntu and Kali?

Okay so I am new to Linux, I recently tried dual booting my laptop (with 1 TB hard-disk and 4 GB RAM which can upgrade upto 16 GB which I am planning to do) with windows 10 and Ubuntu but after ...
0
votes
3answers
23 views

How to remove duplicate rows from a file?

File, TABLE1 ------- 1234 TABLE1 ------- 9555 TABLE1 ------- 87676 TABLE1 ------- 2344 I want the output like TABLE1 ------- 1234 9555 87676 2344
0
votes
1answer
18 views

A limited acess to directory

I want a user of my group to be able to read a specific file in a directory if he knows the name of the file.
-1
votes
2answers
15 views

Why does running a Cron Job as root stop the sshd service and disallows login for other users?

I have a script for getting Clamav updates from another server which I run as a Cron job as root. Also, I have root login disabled for /sbin/nologin. But this has serious implications on the system as ...
-1
votes
3answers
30 views

set the execute bits in C

I am writing a program which requires me to create a file using standard fopen fprintf fclose calls. I want to set the execute bits. I can do this with chmod but this seems overkill. For the life of ...
0
votes
1answer
14 views

How to fix VirtualBox bridge adapter for Kali Linux?

My problem happened like this: I need someone to help me fix the problem.
0
votes
1answer
8 views

How does the new KDE Neon compare with Kubuntu and what are the advantages and disadvantages of each

I noticed that there is a new distro called KDE Neon, but to me, it sounds just like Kubuntu, I don't know what the differences between it and Kubuntu are and whether one has any ...
0
votes
1answer
6 views

Problem configuring GPG pinentry

I have two hosts, A and B. On A I have the gpg pinentry program setup to be pinentry-curses but I have no idea how I did it anymore. I can not seem to find the difference between A and B, but on A ...
1
vote
2answers
14 views

Script or command to list all top-level directories that contain sub-directories with modified files less than 30 days old

This is quite a unique one. I'm looking for a way to list all top-level directories in a folder that contain sub-directories with new or modified files less than 30 days old in them. We use a ...
0
votes
0answers
8 views

How to reduce the bandwidth using squid proxy delay pools

I have a LAN with user PCs that managed by linux squid proxy server. IP ranges : User1 category: 192.168.1.2-192.168.1.12 User2 category: 192.168.1.13-192.168.1.23 User3 category: ...
1
vote
1answer
18 views

Why should I not use 'kill -9' / SIGKILL

Posting this question because I was surprised to not find it directly answered; apologies if this is a duplicate - I did look! I have heard that kill -9 or kill -SIGKILL is bad, but I don't ...
0
votes
0answers
10 views

Might any damage have been caused when cancelling the update manager in Linux Mint during an update?

My Linux Mint Update Manager was running an update - a very big one. It was in the middle of downloading package files, and it was taking way too long and I had to stop it, so I clicked Cancel. When I ...
0
votes
2answers
9 views

Variable assignment in a ksh script

I am viewing a ksh script and I see a function where the variable has been defined as below. Can anyone explain what exactly the below assignment of variable means in ksh script? ...
0
votes
3answers
30 views

How to save case values in variable

selection= until [ "$selection" = "0" ]; do echo "" echo "PROGRAM MENU" echo "1 - display free disk space" echo "2 - display free memory" echo "" echo "0 - exit program" echo "" echo ...
1
vote
2answers
22 views

Get the output in a formatted way

In a for loop, I am using the command: echo " Job_time is $i : Stopping the job " Sample output: Job_time is 6 : Stopping the job Job_time is 6.50 : Stopping the job Desired output: Job_time is ...
0
votes
0answers
7 views

Heartbeat with no utilization nor load with ganglia

I use ganglia to monitor my computer cluster. On Ganglia Web Interface, I sometimes have the following issue: given a node, according to the physical view and the node view, the node has sent a ...
2
votes
1answer
23 views
1
vote
2answers
89 views

How do I double each line of piped output?

How do I double each line of input piped in? Example: echo "foobar" | MYSTERY_COMMAND foobar foobar
1
vote
1answer
14 views

Unable to boot after updating the kernel rhel 6.7

I am having a Red Hat 6.7 running on VM which I updated with the latest version kernel-2.6.32-573.26.1.el6.x86_64. but after this update I received the below error: kernel panic-not syncing: VFS: ...
0
votes
0answers
16 views

Precise and Imprecise Interrupts [on hold]

Taken from Modern Operating Systems book by Andrew S. Tenenbaum pg.350 I have a question regarding precise and imprecise interrupts. This is what page 349 says: Note that there is no prohibition ...
0
votes
0answers
11 views

Checking the status of submitted job

I submitted a job using: qsub ROSE_main.sh #inside the .sh file : #! /bin/csh #PBS -l mem=20gb #PBS -l ncpus=20 #PBS -l walltime=900:00:00 #PBS -l cput=900:00:00 #PBS -e ~/Tool/rose/qsub_error.txt ...
0
votes
1answer
12 views

NTFS compression and RSync

I currently have a hard drive that I backup using RSync. I do weekly; monthly snapshots. I would like to compress some of my hard drive using NTFS compression. How would that affect my future ...
0
votes
0answers
8 views

wkhtmltopdf and pdfkit issues in python

Hello I am developing an web with python Flask in a linux server, in doing so I am trying to use pdfkit and wkhtmltopdf. I am using a linux server(ubuntu). In Putty, after logging into my server, at ...
0
votes
1answer
10 views

Server Upgrade from CENT OS 4 to 6

I will be updating my server since CENTOS 4.x is not supported long time ago. I really don't have any idea how to proceed and I have been searching how, but I can not understand since It is ...
0
votes
1answer
14 views

How to set per-process or per-application system level proxy in Linux?

I have searched on the Web with very few to none of the results which help me setup a system level proxy setting in a way that only certain applications use the proxy. Rest of the applications should ...
0
votes
2answers
16 views

How does ext4 decide number of blocks of a file?

I'm playing with stat command which basically shows the inode information. Though I'm showing the information of a small file (146 characters), it shows 8 blocks. I was wondering why is that? Since ...
0
votes
1answer
22 views

How do I run the Linux kernel?

I'm reading Robert Love's Linux Kernel Development in order to learn more about, well, Linux kernel development! But in Chapter 2: Getting Started with the Kernel, I'm instructed to download and ...
0
votes
0answers
7 views

BSD sound problems with Realtek 892

I'm having the same problem as: No sound with Mint 12 and Realtek ALC892. The user marked it as "Resolved" without actually resolving it, he just changed to another OS and gave up. Has anyone ...
0
votes
1answer
22 views

how to get the size of an indirect array in bash?

Without using eval. this wont work: astr=(a b c) str="#astr[@]" echo "${!str}"
0
votes
0answers
14 views

understand chains and tables in netfilter/iptables

As I understand, Linux kernel has five hook points for IPv4 packet flow defined in netfilter_ipv4.h file: /* IP Hooks */ /* After promisc drops, checksum checks. */ #define NF_IP_PRE_ROUTING 0 /* ...
2
votes
0answers
16 views

Unable to get sudo lecture working on CentOS 7 server

I'm trying to enable the sudo lecture every time someone executes sudo, but I can't seem to get it working at all. I found a similar question here, in which someone states that if you don't see any ...
1
vote
2answers
47 views

How to modify (not add to) a number variable?

Suppose that a=$((1)) How can I change the value of a from 1 to 01? I just want to insert the 0 before the current value of a and rewrite it. a=$((01)) would not be a solution in this case because ...
0
votes
1answer
9 views

Fish-Shell Will Not Save my Aliases

I do not know why, but after making a whole bunch of fish aliases. I'm assuming I have neglected one simple step after assigning them all but I cannot seem find the solution myself. Can anyone lend ...
1
vote
1answer
33 views

According to which algorithm does Linux assign the hard drive letters?

I have observed that between repeated boots of the same system, the mapping between the device names /dev/sda, /dev/sdb/... and the physical hard drives stays the same. However I am not sure if it ...
1
vote
1answer
24 views

What is the difference between man and --help? [duplicate]

I used both command lines and displayed the same output
0
votes
1answer
23 views

How to benchmark different shells

I want to know if shell 1 is better for a job than shell 2 with a test that I handle maybe with shell 3 for example ksh, dash, bash or zsh. I use a test script that builds my projects, starts it,feed ...
2
votes
3answers
98 views

Why commenting out trap function allows control-c to work?

After standing up rhel VM and I was tailing a log file (tail -f xyz.log) however I realized that control-c didn't work to exit out of it. I tried control-z which did but that left background job so ...
0
votes
0answers
12 views

NFS v4: export directory as root, but no give server root access

I have one diskless system and I do not want to use no_root_squash parameter to load / exported OS. Why? Mainly because this is not secure. When I load my machine with my reboot system it try to ...
0
votes
0answers
9 views

Dual boot windows 10 and Kali Linux unusual problems

So I just made a 70GB partition on my 1TB ssd by using the Kali Linux live CD. After I installed everything, the system booted into Kali just fine, with no problems. Although, when I try to restart ...
2
votes
1answer
134 views

Why can I cd to // but not /// or //// or ///// or … [duplicate]

When I change directory to //, it seems to put me in a special directory that is very similar to but slightly different to /. However, trying to add any further slashes (///) simply drops me in /. $ ...
0
votes
1answer
9 views

OpenBSD 5.9 in Virtual Box

Can we confirm that bidirectional copy paste won't work between Virtual box and host os? I have installed OpenBSD 5.9 in VirtualBox where it runs fine and I want to enable copy paste between guest and ...
0
votes
2answers
26 views

operate on different sections of stdin without intermediate file

Is there a simple way to do this with redirection or pipes without creating FILE1? I want to apply process2 to the body of the output of process1, without touching the first and last few lines. ...
-1
votes
1answer
30 views

File size limits

i have a text file which its size is 23.5 Mb. i want to reduce file size under 20 Mb. how can i do that? the file type is: plain text document (text/plain). this file have ~40000 line and ~500 column. ...
0
votes
0answers
12 views

Unable to mount New Volume

When I plug in my encrypted USB drive, I get this message: Anyone know how this can be corrected? It was working fine yesterday.
0
votes
0answers
9 views

How to install linux-gpib Python bindings inside virtual environment?

I'm working on developing Python code to control GPIB devices, and am realizing the more I learn the less I know. So here's my question: I believe I've installed linux-gpib properly, and I have ...
0
votes
1answer
4 views

Netatalk users can't read World/Other readable files

I'm using Netatalk to share documents with several Mac machines. Regardless of what permissions I'm using for the file (typically 775 for folders and 664 for files) they can't be read by users in the ...
-2
votes
0answers
15 views

cannot install mysql binaries for linux with all installation steps

I am trying to install mysql-5.6.22-linux-glibc2.5-x86_64 according to all steps as : shell> groupadd mysql shell> useradd -r -g mysql shell> cd /usr/local shell> tar zxvf ...
0
votes
0answers
19 views

Internet Connection Dosent Work [on hold]

For some reason there is no internet connection on my Virtual Machine Kali-Linux... I tried to both ping, and go to an actual browser.. and i checked on vmware, i set the settings to Bridged ...

15 30 50 per page