1
vote
2answers
43 views

Extracting numbers with a decimal point from ls output in Bash

I would like to extract the numeric part of the file names that begin with "hsli" and end with ".h5" in Bash on Ubuntu 14.04.1 64-bit LTS. My ls -l hsli* output is as follows: -rwxrwxrwx 1 ongun ...
0
votes
2answers
28 views

What I am doing wrong with this bash variable? [on hold]

How can I insert a variable into a command? In the case below, I need to concatenate the command with the variable file name. #!/bin/bash # Define a timestamp function timestamp() { date +"%D-%T" ...
0
votes
1answer
16 views

Mounting smb shares on OS X accessible with Microsoft account

I have a Windows machine which shares a particular directory and only an owner of this directory is able to access it over the network. Owner account is linked to Microsoft account. I am trying to ...
0
votes
1answer
13 views

Nginx using default configuration on its own

I have set up Nginx on Ubuntu server 14.04 I want to configure a very simple server block that listens for /app path and redirects traffic to a running nodejs instance locally. I have done that with ...
0
votes
1answer
33 views

problem with sed inside sed

i am trying to parse a string inside a sed command but i am getting errors. if some1 can help me... it would be nice. i dunno what else to try sed -e "/pd begin $(echo 3:1I:1:1|sed 0,/:/{s/:/' ...
1
vote
2answers
14 views

recommended storage location for multiple users [duplicate]

Is there a conventional location to store non-secret bulk files that can be accessible by multiple users? I know that I can create a new folder (and set the right permissions) in most places in the ...
1
vote
2answers
28 views

Perpetual SSH connnection security and practical implications

I have used the linux desktop for many years, but I rarely get into its networking aspects. I run a personal fileserver (primarily running owncloud on Ubuntu 14.04), and to perform regular ...
1
vote
1answer
32 views

How can I get $PATH to always include $(pwd)/sub_directory/.bin

If the path ~/dev/project1/node_modules/.bin/ionic exists, and my working directory is ~/dev/project1, I would like to be able to just type ionic and hit enter. I could include all those ...
0
votes
0answers
17 views

Computer shuts down while installing FreeBSD

I'm trying to install FreeBSD 10 on my laptop. To do this, I made a live-USB stick using UNetbootin. The problem is that when I get to the FreeBSD boot loader menu and press enter to begin the ...
7
votes
4answers
351 views

How to remove duplicate characters?

If I am having a line as: Thhiisss iisss mmyyy nameeee I want to print this as: This is my name What is the unix command for this?
0
votes
3answers
23 views

Limit access to a single host

I have two 2 hosts (A and B), each with a single network interface, directly connected to a 3G router, via the LAN ports. I've configured both host A and B gateway to point to the 3G router. However, ...
1
vote
0answers
17 views

process blocked in msgrcv

I have a process that is blocked in msgrcv as shown by ps -eo pid,tid,wchan. Is there any way to find the PID of the process that my process is expecting to receive a message from? The communication ...
1
vote
0answers
20 views

nginx server_name directive not working

I want to use NGINX as a proxy server for my application. My application (say 'abc') is running on port 8000 on my machine. And NGINX is running on the same machine. A part of the conifguration looks ...
0
votes
1answer
17 views

Repair broken Ubuntu installation [on hold]

I have a broken Ubuntu installation. It's actually a Lubuntu, but I suppose the procedure would be the same. The laptop crashed physically (falled 20 cm) and when restarting, something was wrong and ...
0
votes
0answers
11 views

Where can I find either a)my SMTP log and / or b)determine/toggle whether or not SMTP is being logged at all

My server sends out emails via sendmail or SMTP, depending on the situation. I am trying to find logs for SMTP. Sources indicate that I should look at /var/log/maillog ...
-1
votes
1answer
21 views

How to sort by column and break ties randomly

I have a tab-delimited file with three columns like this: joe W 4 bob A 1 ana F 1 roy J 3 sam S 0 don R 2 tim L 0 cyb M 0 I want to sort this file by decreasing values in the third column, but to ...
0
votes
1answer
22 views

Starting Services without Systemd?

Is it possible to start services on and post startup in CentOS/Fedora distributions without using systemd (systemctl)? If yes, how? Systemd does not work in non-privileged docker containers; ...
0
votes
1answer
16 views

Snaphot for backup changing files with rsync?

With rsync, is it acceptable to modify some files in a file system, while backing up the file system? If yes, is it necessary to take a snapshot before backup, and do an incremental backup after ...
0
votes
0answers
9 views

TFTP server in bridged VirtualBox VM not working with client specific configuration

I recently had to setup a network boot environment for some embedded devices. I decided to use an Ubuntu 14.04 in a VirtualBox VM with the virtual network interface bridged to the physical ethernet ...
0
votes
0answers
24 views

keep getting broken pipe when ssh

I'm using Ubuntu 14 LTS with two machines. When I ssh into the remote machine, I keep getting pipe broken after une minute or two, and in my ssh client I set up the keepalive already. This happens ...
0
votes
0answers
13 views

Restore from incremental backup?

I read some books which use dump and restore. They said that during restore, first restore the latest full backup, and then restore each incremental backup created after the full backup. But I am ...
0
votes
0answers
30 views

Why must a server know its own host-name and domain-name?

In Linux, a server can set its own host-name and domain-name through sethostname() and setdomainname(). I just wonder, however, why must a server know its own host-name and domain-name? To my ...
0
votes
1answer
15 views

how to find the files in a directory with Prefix__date_030000_1.txt?

how to find the files in a directory with Prefix__date_030000_Suffix here Prefix is the Actual file name and format of the date is date +%Y%m%d and Suffix is the '.txt' and the 030000 number will ...
0
votes
1answer
21 views

Run windows local program from remote linux

I'm trying to run a python script on a remote linux machine accessed by SSH from my local Windows machine. The script contains a loop where for all files in a directory it's going to go to a certain ...
-1
votes
1answer
50 views

Do Linux system administration skills transfer across distributions?

If I learned Linux administration on a specific distribution, will those skills be applicable to any other distribution as well? Do I have to re-learn everything from scratch each time I touch ...
1
vote
0answers
20 views

X Image following cursor mouse pointer

i have rpi connected with hdmi on big tv few meters from my workplace and i want to change size of mouse pointer. xsetroot -mouse .. .. will change just one type of cursor and not covering all ...
1
vote
0answers
12 views

Network tool to monitor IP packet fragmentation

Is there a tool, similar to iptraf, that would let me see how many incoming/outgoing IP packets get fragmented/defragmented, and what percent of traffic they are? I know this can be counted with the ...
1
vote
0answers
18 views

exim4 on debian 7.8 sent mail never arrives @gmail

I followed the instruction on this page Debian Exim and configured my exim with a single file via the dpkg-reconfigure exim4-config setup. Now I can send mails between local users (from root to ...
1
vote
1answer
41 views

Core File In unix

I have some doubts about core file. 1) what is core file. 2) where it is located. 3) what is the use of core fie. 4) How to generate core files while compiling c programs. 5) what is the difference ...
1
vote
0answers
10 views

Where can I find the server config that I am using to send emails with sendmail in CentOS 5.6?

I have a CentOS 5.6 VM and have been able to send emails from my PHP application up until two days ago. I am trying to find the SMTP server config details in my sendmail files somewhere, but I cannot ...
0
votes
0answers
13 views

Epiphany (GNOME 3.12) closes upon opening a new tab

My Gnome 3.12 web browser (Epiphany) is closes automatically when I click the new tab option or when I open the new tab using keyboard shortcuts, otherwise it is running fine. How can I resolve this?
1
vote
1answer
31 views

systemd and *.service have been not existed (Are they generic?)

As you know, units of systemd have stored in /lib/systemd/system such as : rsync.service avahi-daemon.socket bluetooth.service cups.service When you use the following command : systemctl enable ...
0
votes
1answer
46 views

rsync error during incremental backup

I am learning how to use rysnc (version 3.0.9, protocol version 30) to do backup on a toy example, from a dir /tmp/pdf to a backup dir /tmp/backup, following ...
1
vote
0answers
11 views

Unable To Bridge Two Teamed Interfaces - Advice?

Before the wall of code I'll explain the situation. I'm trying to set up two interfaces to be teamed together, and from that team create a bridge. I've been studying for the RHCE and I believe this ...
0
votes
1answer
27 views

Add cron job via single command [duplicate]

First of all, I'm using elementary OS (based on Ubuntu 12.04). I have a cron job set up to run a script every day at 23:30: 30 23 * * * /path_to_script/ Is there a way to add it to cron via a ...
1
vote
1answer
20 views

there are screens in the list, but “no screen to be resumed”

When I type screen -r I expect to either see: A list of screens to resume, or a message "There is no screen to be resumed." Today, I see there is one screen, but I still get the message that there is ...
-5
votes
1answer
24 views

Remove characters from string with sed [on hold]

I have this header: >tr|G3Q381|G3Q381_GASAC Uncharacterized protein OS=Gasterosteus aculeatus PE=4 SV=1 and I was thankfully helped on here to get it to: >G3Q381_GASAC but now I need to ...
1
vote
0answers
11 views

Handle compress command error messages on AIX

I am working on production issue and unable to reproduce error message for compress command. Current Solution We have case-esac block in shell wrapper that handles messages as follows; case "$MSG" ...
1
vote
1answer
34 views

Automating setup of the SSH tunnel

I need to frequently login to many machines but I can only login to them from a proxy machine or using an SSH tunnel (by tunneling through that proxy machine). The problem is that I cannot use ...
-3
votes
1answer
33 views

find all .sh files then copy to <date>scriptbackup

Locate all the .sh scripts you have created in your Linux installation (searching recursively if needed – excluding existing backup folders) It will then copy them all into a folder called ...
2
votes
1answer
29 views

what is directory entry?

I have to use the dirent.h in some of my C projects. According to various different descriptions found online, I have come to a vague idea that directory entry is a data structure, which tells us ...
0
votes
0answers
34 views

why rm -f ./h5/*.* also deleted files in current directory? [on hold]

I ran this command rm -f ./h5/*.* and it deleted all files in the h5 directory, but also all files in the current directory. But it did not deleted exec files and a makefile, I guess the only ...
3
votes
1answer
233 views

Chaining pipe | with &&

I have this command where I want to filter make output: cd /app && make && sudo nginx -g 'daemon off;' What is the correct way to insert make | pv -q -L 100 here?
0
votes
1answer
21 views

Updating Linux Server from Ubuntu 13.10 to 14.04

I have three VPS Linux machines running on Ubuntu 13.10 (with Nginx1.6). I want (need) to upgrade to ubuntu 14.4 for several reasons. On these servers I have company software running like JIRA, ...
-2
votes
0answers
18 views

shell script to know the status of a node's application, whether it is up or down [on hold]

I want to know the status of an application and application server which I cant get directly. It is like connecting to a server lets say 'A' and that server has many nodes say A1.A2,A3 and in that ...
0
votes
1answer
7 views

What are the files required by nss-passwords?

I want to access my Mozilla Firefox passwords with the command-line without the complete profile folder. What are the files required by nss-passwords?
1
vote
1answer
38 views

Print lines between two patterns matching a condition in awk

How can I print lines between two patterns which meet a certain condition? For instance for an input file partially containing the following: Time %MEM %CPU %SWAP 00:05:02 7.3 ...
2
votes
1answer
19 views

Show shell greeter only on initial login

Is there any way to show a greeter (motd kind of thing) only on initial login, and not when you do sudo su? Here's my current .bashrc: #!/bin/bash # # ~/.bashrc # # If not running interactively, ...
11
votes
5answers
987 views

What does “,,,” mean in the 5 column in /etc/passwd file? [duplicate]

There are 7 fields in the /etc/passwd file :username,Password,User ID (UID),Group ID (GID),User ID Info,Home directory,Command/shell. Part of rows in my /etc/passwd : avahi:x:105:110:Avahi mDNS ...
0
votes
1answer
11 views

Why samba share folder' size is smaller than original folder? [on hold]

I've used a storage with IP (10.10.133.50) and size is 10 TB. I have a server with static IP address (this server is same subnet with storage: 10.10.133.60) then I can mount the storage to the server ...

15 30 50 per page