0
votes
0answers
13 views

Sorting different groups (separated by a line) based on 16th column

I have a CSV file which is in this format cluster 0 aaa bbb ccc ....... xxx yyy zzz bhc adf ghy ....... hjn dft cbn cluster 1 adg bhg klo ....... jio jik mkl asf ghb nbv ....... cvb xcz hga ... ...
0
votes
2answers
47 views

Where is the latest source code of man command for linux?

I'm looking for the latest source code of man command, the version in my Linux is pretty old(v1.6f), but I failed after googling a while. I mean the latest source code of man, not man-pages but the ...
0
votes
1answer
23 views

How do I share a CUPS printer with a Windows VirtualBox guest?

I'm currently using Ubuntu but I have printing set up with CUPS. Is it possible to share a CUPS printer with a VirtualBox Windows guest? Or, namely Windows 2000.
0
votes
0answers
12 views

How to use packages which are in /bin/ but cannot be called with just the name? [on hold]

I am running Raspbian and trying to run the following cmd so that I can see all contents of a tar archive I have. $ tar -tvf backup.tar.gz When running this cmd I am greeted with the msg bash: $: ...
-1
votes
0answers
15 views

Can't locate Vim folder anywhere on linux mint system

I'll try to keep this short. I've been trying to install YouCompleteMe and have had a bunch of trouble, so consequently I have installed and uninstalled vim a few times. Now my problem originated ...
0
votes
0answers
13 views

Eclipse does not launch without sudo

On my Fedora (Fedora 22 Workstation) system, I recently installed Eclipse (sudo dnf install eclipse-platform). However, I am unable to launch Eclipse without using sudo. I would prefer not to have to ...
0
votes
2answers
15 views

Extract the spec file out of an RPM

I have an RPM that I built. And I am looking to figure out how to extract the Spec file out of it. I have tried: rpm --scripts -qp sampleBuild.rpm That didn't work. Does anyone know the proper ...
1
vote
1answer
17 views

How to install drivers for integrated intel graphics?

I am building a minimal Debian system. I installed Debian Wheezy with the netinstall iso, and selected to install only basic system utilities, no desktop environment. The computer that is running this ...
0
votes
2answers
15 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
39 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
18 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
18 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
21 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
31 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
16 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
21 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
14 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
39 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
18 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 ...
0
votes
1answer
23 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
50 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 ...
1
vote
1answer
13 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
14 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
22 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
57 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
18 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
32 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
25 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
32 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
27 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
23 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
21 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
42 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
15 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
24 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
37 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
21 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
23 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
39 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: ...

15 30 50 per page