0
votes
1answer
6 views

ZIP files with size limit

Is there a command to create multiple ZIP files based on file size? So that in a folder of 600 files, totalling 1 GB, the command will create 4 zips roughly equal to 250mb. There's a similar command ...
0
votes
0answers
2 views

Define physical volume inside non-partitioned disk

I've been able to define a physical volume (LVM) in two ways: Creating a 8e (Linux LVM type) partition and then # pvcreate /dev/sdb1 Usign pvcreate directly using a non-partitioned disk and then # ...
1
vote
0answers
16 views

using shortcuts to move in bash command line

When I use Ctrl+Left_arrow or Ctrl+Right_arrow in bash, I move backward a "word" and forward a "word" respectively. I belive, this is defined in /etc/inputrc # mappings for Ctrl-left-arrow and ...
0
votes
1answer
2 views

Dropbox tray icon doesn't show up in Elementary OS Luna/Freya?

After installing the Dropbox DEB package from their site and starting the Dropbox daemon, the tray icon for Dropbox doesn't show up in the tray. I have verified that Dropbox is, in fact, running, but ...
0
votes
3answers
31 views

delete all .swp file using rm command

I am trying to find and delete all .swp files in my current directory. I was using below command: rm -i `find . | grep .swp$` But everytime it is giving me this error: rm: missing operand Try `rm ...
1
vote
1answer
21 views

Update Debian 8 (Jessie)?

I think my Debian 8.0 (Jessie) installation is outdated, but the Package Updater always says All packages are up to date. The result of: sudo apt-get update sudo apt-get -u upgrade is 0 upgraded, ...
0
votes
0answers
12 views

Using autossh to create a persistent, multiplexed ssh connection without any port forwarding?

I want to use autossh to maintain an ssh session configured for multiplexing. This way I can write scripts on my localhost that take advantage of the persistent ssh connection. I'm having trouble ...
0
votes
0answers
30 views

bash scripting read stdin issue [on hold]

In my bash script, I was reading sdtinput like below: clone_repo(){ //cloning a specifc branch on my_app dir export GIT_WORK_TREE="path/my_app" } cd_app(){ ...
2
votes
1answer
21 views

External command to force ofstream to flush

I have a C++ ofstream that, for performance reasons, I don't flush from inside the code. However, occasionally I need to inspect the file contents. Is there a Linux command that will force the ...
0
votes
0answers
8 views

STDERR: yum-dump Repository Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

This have been a chronic issue with my servers. i use epel repo to install & upgrade nss package. But every frequently, i have this issue where it fails with the error. STDERR: yum-dump ...
0
votes
0answers
10 views

Not permitted to access my files on $HOME in tmux after log out and log in

My $HOME on a server is in a Andrew file system, and the server runs kerberos. I created a tmux session, wherein I ran a shell process. Then I detached it, and logged out, and after a while logged ...
0
votes
0answers
12 views

unpigz (and untar) to a specific directory

I now how to gunzip a file to a selected location. But when it comes to utilizing all CPU power, many consider pigz instead of gzip. So, the question is how do I unpigz (and untar) a *.tar.gz file to ...
1
vote
0answers
20 views

How to get stdout of process? [duplicate]

I started a process from the command line, but the window server died. However I see the process I started is still running. Is it possible to connect a terminal to the process to see its output? ...
1
vote
0answers
5 views

XFRM_SUB_POLICY config in kerne

When testing strongswan performance, we saw that the performance differed by a lot between an ubuntu server and a centos server, with everything else being the same. We noticed that the ...
4
votes
2answers
96 views

How can I make a script take multiple arguments?

This is a very simple script #!/usr/local/bin/bash set -e if [ "$#" -lt 1 ] then echo "Please insert at least one argument" exit else echo -e "\c" fi if [ -h "$1" ] then echo "$1 is a ...
0
votes
0answers
18 views

How to get a list of major number -> driver associations

http://www.nostarch.com/tlpi states: "Each device driver registers its association with a specific major device ID, and this association provides the connection between the device special file and the ...
0
votes
0answers
6 views

Installing Docker into Vagrant VM failed

I'm using Vagrant and Docker and this problem occurred while i vagrant up my machine, it works fine before: ==> default: Running provisioner: docker... default: Installing Docker (latest) onto ...
2
votes
1answer
15 views

how to get the run results of the cron job

I wrote a simple Hello World Java Program and created a jar file of it. Now to test the cron job, wrote a crontab.txt file with the line 50 12 27 4 1 java -jar HelloWorld.jar and saved it. At the ...
0
votes
0answers
8 views

Unable to boot Kali Linux 1.1.0

recently I have made a USB livestick for Kali 1.1.0 with lili and with Win32DiskImager and tried to boot it in Windows 8.1. When I came to the boot order menu my USB was recognized as an UEFI-device, ...
3
votes
2answers
61 views

Which file in /proc gets read by the kernel during the boot up process?

Which file in /proc gets read by the kernel during the boot up process? This was a question on my LPIC 101 test that I think I might have answered wrong. I searched on google and some other places but ...
0
votes
0answers
17 views

How to log all things that happened via an SSH session?

Question: on an ex.: Linux or AIX machine, how can we log the things that happened via ssh? ex.: a user logged in, gaved out a few commands, or an automated tool executed something via ssh or someone ...
1
vote
0answers
9 views

OpenVPN bridged network without authentication

I would like to configure OpenVPN multi-client server in bridged mode(tap virtual interface). My server-side configuration is following: dev tap0 proto udp port 1194 mode server ifconfig-pool ...
2
votes
1answer
29 views

What bad things could happen if we don't use sudoedit?

We know it's safer* to use sudoedit, but what bad things can happen if we have the following in sudoers? Cmnd_Alias FOO = /bin/ed, /usr/bin/ed, /usr/bin/vi foouser LOCALHOST = NOPASSWD: NOEXEC: FOO ...
1
vote
0answers
23 views

Attaching a screen started by a script on startup

I'm starting a screen with a script on startup (placed into init.d). How can i attach to that screen later on (the server it runs is still running). If i start the script manually i'm able to attach ...
0
votes
1answer
17 views

start process from ssh and be able to close connection [duplicate]

I'm connecting to my RaspberryPi with Raspbian installed via ssh and my problem is, that I can't let the RasPi do things (installing software, make calculations) while my Computer is shut down, since ...
3
votes
2answers
133 views

How to print out only the script name?

[username@notebook ~]$ cat foo.sh #!/bin/bash echo "$0" [username@notebook ~]$ ./foo.sh ./foo.sh [username@notebook ~]$ Question: How can I output the "foo.sh"? No matter how was it executed.
0
votes
0answers
14 views

How to repair an overclocked microsdcard? [on hold]

I overclocked my raspberry pi 2 myself yesterday. However I also increased the sd_freq. Now after a reboot my microsdcard is mounted as read only. I have a laptop with linux installed where I can ...
0
votes
0answers
11 views

Unable to access localhost in Oracle VM (CentOs[Guest]) from Windows7(Host)

I'm trying to access the localhost in VM from Windows 7 64bit(Host OS), but unfortunately getting "Not Found" Http Error 404. I'm able to login to VM using Putty. Below are the work environment ...
0
votes
1answer
15 views

trying to dual boot kubuntu with windows 7

I have windows 7 as my primary is . Now I would like to install kubuntu here is what I get in the disk setup What should I do to use dual boot?? Manual option doesn't do anything!!
-3
votes
0answers
19 views

Duplicate Image Searcher using Bash [on hold]

I need to create a script to search through a directory (and sub-directories) of a user’s choice, creating a SHA1 hash value for each image. Each calculated value will need to be compared, where the ...
4
votes
0answers
17 views

Enabling completion with tab on an old ksh on SystemV

Is it possible to make completion with Tab like in bash? Currently I use Esc twice, can this be changed to a tab?
0
votes
0answers
7 views

Copy& Paste Fedora and Virtualbox CentOS7

I want copy text from Fedora 21 and paste to Virtual box with CentOS 7 how can I do that?? I change in Virtual box settings Shared Clipboard and Drag'n'Drop to bidirectional Thanks for help, ...
1
vote
0answers
14 views

ld cannot find existing 32-bit libm

I'm only posting after exhausting all other answers I could find on google. I still can't figure out my problem. I try to use g++ to compile in 32-bit on a Red Hat machine. This is my command: ...
1
vote
1answer
24 views

When to use XPG* version of a command?

I occasionally do work on an older Solaris machine whose default version of grep is non-POSIX-compliant. This causes problems in my rc files because the default grep on the machine doesn't support ...
1
vote
1answer
32 views

How to create dynamic process substitution based on the input (multiple FIFOs)?

I'm trying to create multiple process substitutions based on the output from the other command, however I'm not sure how I can achieve that. As sample scenario, I've given list of files: touch a.txt ...
1
vote
1answer
9 views

Diff of directory statistics sumarry (git diff --stat like for non-git repo)

Is there a tool (or diff option combination) which would produce output similar to git diff --stat? I have two kernel sources and I would like to get general idea of what was changed in them. ...
3
votes
1answer
27 views

What is the difference between .exrc and .vimrc?

I know from experience that the ~/.exrc file can be used to configure vim. I also know that the ~/.vimrc file can be used for the same purpose. However, If I use .exrc to configure vim, this leads ...
0
votes
2answers
18 views

Not able to connect to server using WAN ip address…?

I am new to linux. I can connect to server using local IP (192.168.1.10) address using putty. but not able to connect using WAN ip address..?
0
votes
1answer
20 views

OpenSSL 1.0.2.a and Centos5.7

I have an old version of Centos (5.7) and I would like to enable TLS 1.2 due to Google Chrome warning about TLS 1.0 I tried to update with yum but I can see that no OpenSSL 1.x could be installed ...
0
votes
1answer
9 views

Incrontab / Incron on Cygwin

Does anyone please know if it is possible to install incron/incrontab within Cygwin? I've had a look and the package does not appear on the cygwin website, I wondered if anyone had tried, knew of any ...
4
votes
2answers
303 views

What defines “ll” in Fedora?

In Fedora, instead of typing ls -l, you can type ll. What causes this behavior? I've installed a new Debian system that does not appear to have this functionality. They're both running Bash. I can ...
1
vote
1answer
25 views

Merging rows with common values

I am trying to combine pairwise matches in a text file so that i can find all matches in a group: e.g. my file contains two tab separated columns like this: Simon John Simon Paul Steve Simon Graham ...
0
votes
1answer
16 views

Where can I find the screenlog.0 file?

I have to run some scripts in a screen and I used the C-a H command to record the output to a screenlog.0 file when I press the shortcut keys the message is Logfile "screenlog.O" closed. But if I try ...
1
vote
0answers
24 views

Why can't Adobe Flash for Mac run on Linux?

As we know, Adobe no longer develops new Flash versions for Linux (except for Google Chrome, i know). It does, however, develop actively Flash for Windows and Mac. Linux can run native Windows ...
-2
votes
0answers
22 views

Debian 7 GNOME: Oh no! Something has gone wrong!

First of all, do not mark it as a repost: other solutions didn't help me.. So, as you see from the title, I am running Debian 7 (Kali) and once installed Steam from unofficial repo I can't open gnome. ...
1
vote
2answers
14 views

Debian dns “A” record used by another domain?

I have a Debian Wheezy server with a domain name and a static ip address. The domain name's "A" record set to my server's ip address. Everything works fine. The problem started when another guy set my ...
0
votes
1answer
8 views

Synaptic Package Manager: Could not apply changes! Fix broken packages first.

Have been trying to fix it in various ways, but all these advices on the internet turned out useless for me. It was too strange to see when one instruction help other people, but don't solve my ...
2
votes
0answers
10 views

How to find out which process keeps tunnel interface(tun) up?

If I create a tun interface with ip tuntap add mode tun command and force it administratively up with ip link set dev tun1 up command, then the interface itself is always "physically" down: ...
0
votes
2answers
21 views

Add some text while output to file

Assume I have this command: ./clang-$j.out >> clang-result.txt and the each output for clang-$j.out is a fixed-length hash value (each program per line), however, I want to distinguish them by ...
0
votes
0answers
24 views

compare dynamic file

I have a list of file that will be updated each hour and the name given to these file is according to the date and the hour for example: list_hour_date.txt list_9_20042015.txt list_10_20042015.txt ...

15 30 50 per page