0
votes
2answers
14 views

is VFS a module?

While studying VFS, this question popped into my head. Is it okay to think of VFS as a module? The reason why I thought like that is because VFS has the characteristic of simplifying actual file ...
-1
votes
0answers
37 views

How can I make a Linux system output a bell sound when no packet is received before the next packet is transmitted with the ping command?

This is easy enough on OS X. I just use ping -A example.com and it works just fine. (Note the capital "A".) But it doesn't work like that on Linux. On Linux, the manual page reads as follows: ...
1
vote
1answer
16 views

Does Linux use GPT flags?

As seen below in output of parted, Windows 8/8.1 seems to use flags in GUID partition entries: I guess that for example partition with hidden flag is not shown in Windows Explorer. However, does ...
2
votes
1answer
17 views

How does “parted” know the file-system type for GPT partitions?

parted utility somehow detects the file system on partitions on my GPT disk: I guess it does not do this based on partition type codes(seen in the gdisk output) because those would be 27(Hidden ...
0
votes
1answer
20 views

replacing first link of a text “awk equivalent of sed command”

I wanted to replace the first line of a text with sed it should be like sed -i.bak "1 s/^.*$/"CompoundState\tMethod\tApproach\tS^2\tEnergy\tPath"/" awk.xls but I also need to run it on OSX but it ...
0
votes
1answer
11 views

How do I find where the Java Development Kit is installed?

I installed the JDK on Scientific Linux 7. How can I find the location of the JDK where it was installed?
1
vote
2answers
30 views

How to grep man pages for a word? [duplicate]

Recently I wanted to get info of struct timespec a field of lstat structure, but I couldn't get any. I tried $ man timespec $ man -k timespec timespec: nothing appropriate. After some time I went ...
0
votes
0answers
15 views

Preserve colours when piping to tee

I have made a little program where I update homebrew with brew update, then I send the output to a log file, but I also want to keep it on the terminal so I use tee. The problem is, it doesn't show ...
0
votes
1answer
18 views

Debian 8 UEFI support

I am trying to install Debian Jessie on my new laptop. I downloaded the amd64 Live CD, but the UEFI doesn't recognize my Debian DVD ROM. I disabled the secure UEFI option, but it didn't work, UEFI ...
0
votes
1answer
13 views

How to create a module on a CentOS cluster [on hold]

I would like to create a module on a CentOS 6 cluster (e.g. module load gcc-4.7.2). Basically, I have no clue how modules work. Are there any good tutorials illustrating this or could someone ...
0
votes
1answer
33 views

Pushing to a Git repo from shell script

I'm trying to commit/push changes to a remote Git server with the below sample code: #!/bin/sh USER='username' REPO='/home/'${USER}'/Sites/git/bitbucket/kb' COMMIT_TIMESTAMP=`date +'%Y-%m-%d ...
0
votes
0answers
17 views

replacing windows 8.1 with CentOS 7

A new computer came pre-installed with Windows 8.1. It is an Acer Aspire T desktop. I would like to completely erase windows 8.1 forever from the machine, and replace it with CentOS 7. How can I ...
-1
votes
0answers
16 views

How do I override a FILES rule?

There is a directive that denies access to all index.html (file name used for example only). <files index.html> errordocument 403 http://mydomains.com/no-access.html order deny,allow deny from ...
0
votes
1answer
29 views

Deleted home directory files, how to change bash prompt

I was playing around on Scientific Linux 7 and deleted all the files from my home directory. Now the bash prompt is bash-4.2$. How can I change the prompt and save it. I edited the /etc/bashrc but ...
0
votes
0answers
27 views

shell script in doing operation for 2 folder tree [duplicate]

I have a directory looks like: dhcp-18-189-47-44:CE-06-new-stuctures_backup wenxuanhuang$ ls DFT-00001 DFT-00004 DFT-00007 DFT-00010 DFT-00013 DFT-00016 DFT-00019 DFT-00022 DFT-00025 DFT-00028 ...
-1
votes
1answer
49 views

Using Sed or awk to put a string at the end of a line

I am trying to place a different sting at the end of each line using. The below works but not when the file is large. x=line # in the file. The data goes to the end with $. Let data=0 Let x=0 while ...
0
votes
1answer
10 views

How to integrate daemon scripts with sensu?

I have some daemon scripts that run in an infinite loop that do some action if a detected node has failed. For example; in AWS to move an Elastic IP. How can I integrate this script that runs in an ...
0
votes
0answers
11 views

Linux macvlan add MAC to VLAN

Is there any way Linux behave as a switch Layer 2? I have the idea of making the MAC will automatically be ditched a client to a particular VLAN. Likewise the switches are working. Examples. ...
1
vote
3answers
34 views

Read cells in csv file

I have this table of numbers saved in csv file format as follow: 5, 6, 9, 5, 2, 8, 1, 1, 1, 2, 3, 6, . . . . . . . . . . . . . . . . . . . . Every row in this table describe a ...
1
vote
1answer
15 views

Enabling FIPS on a luks encrypted CentOS system breaks boot password

For one of my apps I need to enable FIPS for OpenSSL, while simultaneously using software disk encryption. VM #1 I launched a CentOS VM instance which was software encrypted during install. The ...
-1
votes
0answers
56 views

How to read/interpret a hexdump file?

I have a file which has an extention of .tax2014, it's a turbo tax file. When I go to open it in a text editor like sublime text I see a hexideciaml dump of data. Example: 9540 4525 6051 095c 5402 ...
0
votes
0answers
7 views

Color profile change seems to have no effect

I'm using a machine with both, Windows (10) and Linux Mint + Unity installed. Colors on Linux look quite strange and poorly calibrated, but everything looks fine on Windows. I was assuming that my ...
0
votes
3answers
32 views

Backing up files [duplicate]

I would like to backup all files older than 90 days and greater plus gzip them. I could execute: find /path/to/files -type f -mtime 90 -exec gzip "{}" \; Problem with this command is it includes ...
2
votes
1answer
19 views

Prevent “Screen” session weird characters

Logged into a screen session, when I press Backspace, Del, Down, Left, or Right while there is nothing for those keys to do, then a weird character appears that does not affect the input. The ...
0
votes
1answer
15 views

Cached Memory but swap is being used [duplicate]

I've got a VM with 16gb of memory and recently it's been using some of the swap space. At first I thought this was because it was using all the memory but then I read some articles about the Cached ...
2
votes
1answer
31 views

ssh/mosh to a remote interactive shell and run specific function

I have the following alias on my local machine: alias gom='mosh -- user@host "/path/to/specific/zsh"' I use it to connect to a remote machine with an interactive shell. I would like to modify this ...
0
votes
1answer
24 views

extract subfolders outside and rename if necessary

I have a directory looks like: dhcp-18-189-47-44:CE-06-new-stuctures_backup wenxuanhuang$ ls DFT-00001 DFT-00004 DFT-00007 DFT-00010 DFT-00013 DFT-00016 DFT-00019 DFT-00022 DFT-00025 DFT-00028 ...
3
votes
2answers
27 views

SSH: Provide additional “pipe” fds in addition to stdin, stdout, stderr

When connecting to a host with SSH, usually three "pipes" are provided between host and guest, for stdin, stdout, and stderr. Is there a command-line option to create forwards for additional file ...
0
votes
0answers
10 views

rmmod/modprobe -r of nmi_watchdog but the module/device is still working

I have a theory that the mni_watchdog device is still operating on a system despite the given module being removed with modprobe -r. Is it possible, and under what conditions, that a module would ...
0
votes
3answers
26 views

How to make a symlink from /A to /B, from running in /C

If I'm currently in location C, can you make a symlink from /A to /B, from running in /C? Seems like I need to be in the dir I am creating the ln -s
1
vote
1answer
22 views

How to connect from one VM Guest instance to another to another VM Guest instance

I have Windows 7 as my Host OS and I have a VM guest instance of CentOs 6, now I have created a more Instance guest Centos 6 via Vagrant. All are working fine and I am able to do a ssh/ping from ...
2
votes
0answers
19 views

Giving a user access to the webcam

I have a user that I use to run untrusted programs (more specifically, Skype). I would like to give that user access to the webcam. I am using Debian, where the standard way to do this is to put ...
0
votes
0answers
25 views

ctrl+c followed by up arrow to edit previous command line results in corrupted text in gnome-terminal

When I'm running a program I am used to killing it with ctrl-c, then pressing the up arrow in order to recover a previous command line, and then editing the text and running again. In Ubuntu 14.04 ...
1
vote
1answer
41 views

Can't redirect cut output

When I try to redirect the output of cut it always seems to be empty. If don't redirect it, the output shows in terminal as expected. This is true for OS X 10.10 and Linux 4.1.6. This works: ...
0
votes
0answers
12 views

Debian Sid / GCC5 transition : is running apt-get upgrade safe ?

I know apt-get dist-upgrade is expected to break things during the GCC5 transition, but is apt-get upgrade safe to execute ?
0
votes
1answer
10 views

Ccache hits only once during kernel build

I installed and set up ccache and built the kernel with it. Here are the stats: cache directory /home/marcin/.ccache cache hit (direct) 1 cache hit ...
0
votes
1answer
21 views

Installing Octave Dependencies on CentOS 6 using yum

I am trying to install Octave 4.0.0 (from source) locally in my home directory on a CentOS 6 cluster. This is a rather extensive install (see list of dependencies). I have several issues : From ...
0
votes
0answers
24 views

Disable VGA port via GRUB in Linux

I want to disable VGA port of my hardware by making changes in the GRUB. How can I do this? I am using Red Hat.
0
votes
1answer
20 views

sum over floating points of the form 3.016e-06 using awk

I want to sum over floats of the form: 3.016e-06 The floats are saved in a files called S_3x3.txt S_4x4.txt ... S_8x8.txt My code sums only the first integer. Instead of 3.016e-06 + 4.022e-06 it ...
0
votes
1answer
21 views

logrotate not compressing files as expected

With the logrotate config. below I was expecting the program to start compressing log files after creating the first backup file. Instead I am seeing this: [root@host ~]# ll /var/log total 1.2M ...
1
vote
1answer
29 views

Folder permissions with cp --parents doesn't allow to copy another file

Scenario: with a script run by a normal user I want to copy several files, and replicate the dir structure. For example: cp --parents /lib/libacl.so /tmp/my_root/ cp --parents /lib/libc.so.6 ...
1
vote
1answer
36 views

Nautilus context menu option to create new file

I use Nautilus 3.10.1 on Trisquel 7.0 GNU/Linux. In context menu, there is no such option like create new file/document. So, I want to add such an option (which may work like that of existing option: ...
2
votes
2answers
54 views

Allow SSH access but restrict root's access to a given set of IPs

I want to allow SSH for all users as normal except that I want to restrict root's access based on a set of IP addresses. So, users peter, paul, lary can login from anywhere, but root may login only ...
0
votes
1answer
13 views

WLAN & Debian based Linux distros: Soft-enable WLan by default

It seems Debian based Linux's have wlan soft-blocked by default. I verify it on my Linux Mint laptop: even if you rfkill unblock all interfaces (in rc.local or in a service...): 2 seconds after boot ...
4
votes
2answers
212 views

How to change all strings in python file from snake_case to camelCase in sed

I've tried some sed patterns like this from commandlinefu sed -r "s/('[a-z]+)_([a-z])([a-z]+)/\1\U\2\L\3/" But somehow it's not working. For one thing they forgot the digits, which I can fix, but ...
0
votes
0answers
26 views

Partition resize in CentOS 7

I have a RAID 6 array set up under CentOS 7 which originally had four 1TB drives assigned, resulting in a total capacity of 2TB. After much fussing about as described here, I was able to add a fifth ...
1
vote
0answers
9 views

How to determine what event is disabling Sticky Keys?

I have an ongoing problem with Kubuntu 14.10, when using the computer I find that Sticky Keys is suddenly disabled. I reenable the feature, but in after some time (measured as three minutes to days) ...
0
votes
0answers
21 views

How to switch between GPUs on Mint 17.2 ASUS laptop?

I'm new at working with laptops and Linux as system for everything. I have small problem, I don't know how to check, and change if somethings is wrong, which gpu is used in games. I have NVIDIA ...
1
vote
0answers
14 views

Where can I find a modern version of the “rock” (or “t”) console typeface?

Back in the Slackware and RedHat-pre-Fedora days, there was a console font called, at times, "rock", or "t". I've searched for this many times, but can't find any reference to it. I thought it would ...
1
vote
0answers
17 views

Maintain 32 and 64 bits version of rpm

let me explain this a little bit, I am in charge of update part of our company product from 32 to 64 bits. At the end, we should have a 64bits kernel + 32bits applications + some 64bits ...

15 30 50 per page