2
votes
0answers
14 views

How to fix file name encoding

I scrapped a site with wget. That site is in German and some of that pages had Ü,ü,Ö,ö,Ä,ä,ß in the URL. Now some files have a very weird name. For example one file is called ...
0
votes
0answers
4 views

How to replace multiple blank lines with a specific non-blank line?

The sample input is 1 2 3 4 5 6 7 8 9 The expected output is 1 2 3 --- 4 5 --- 6 7 8 --- 9
3
votes
2answers
32 views

How to configure BIND for domain name with own nameservers?

I am using BIND 9.10.3_P2 to setup DNS records for domain speedydrive.net. The domain itself has glue records on parent servers with 2 IP addresses for NS servers. Everything looks fine except the ...
0
votes
0answers
12 views

How to execute a command after ssh login via batch file

I want to execute a set of commands at once I login to a ssh session everytime via a batch file. Eg: start putty.lnk -load "session" -ssh username -pw password -m <commands> Here I am using ...
1
vote
0answers
3 views

Barebone Linux Bluetooth pairing

I have a small embedded ARM box, without any KVM, just a serial console, Net and a Bluetooth USB dongle. System is autocompiled using Buildroot framework and reasonably working. I can access the box ...
0
votes
3answers
15 views

Replace composed unicode characters

I have a file with precomposed unicode characters. Here's wikipedia page about it. I have got a word like "Åström", but accents aren't in the alphabet of this language. I want to get rid of them, ...
0
votes
0answers
30 views

Newly compiled kernel can't boot to LVM root partition - but the old one does

When booting a new kernel (4.4.1 on Ubuntu 15.10) for my Intel i7 based laptop (MSI GS40 Phantom), I can't seem to far past Grub. Once initramfs kicks in I get an error message saying that it can't ...
5
votes
1answer
2k views

Outgoing firewall application similar to Little Snitch for Mac

Is there a Linux application similar to Little Snitch? Little Snitch is an outgoing firewall that temporarily blocks outgoing network requests until the user decides whether to allow the connection or ...
0
votes
1answer
31 views

Convert a column of epochs into a time column starting from 0

What I have Hi, imagine a lot of this files, where first column is epoch, and the other(s) column(s) are some data: 1000333,34,1 1001456,56,0 1005356,34,2 What I need I need to transform them ...
-1
votes
1answer
18 views

Need a script for adding bulk IP aliases in CentOS [on hold]

Need a script for adding bulk IP aliases in linux server (CentOS 6.7) As we manually add for eg. ifcfg:eth0:1 but adding 150 to 200 interfaces manually is a lengthy work. SO need a script which will ...
1
vote
0answers
31 views
+50

Lost Folders and Files in the directory /home/ubuntu/ in Ubuntu

I have uploaded a .tar file in /home/ubuntu/ and un-zipped the file in the folder name 'analytics'. After reboot, I couldn't found the directory and the tar files. I have checked it through SSH ...
0
votes
0answers
17 views

security issues from installing from source code as root

I had a question arise about being in root account when going through the steps to install from soruce as root user. I was told it presents security issues. Therefore only use root su and sudo for the ...
0
votes
1answer
14 views

Update 'changing' variables every time PS1 is called, i.e. every new prompt

The reason I need to be able to do this, is to have 'updating' variables in my PS1. I'd like to have my prompt span across the entire width of the terminal, not wrapping around or going down to a new ...
0
votes
1answer
10 views

Delete swap partition and merge it with home partition

When I installed Arch linux I created a 24G swap partition. Now I want to delete it and merge it with home partition. How to do it? Device Start End Sectors Size Type /dev/sda1 ...
2
votes
0answers
6 views

How to dump the dmesg AKA Kernel logs to a single .txt file from the kernel boot?

I am trying to understand the SATA Host-Device Communication and for that I have put a lot of debug messages in the kernel driver code. Now messages are in such a huge amount that I am not able to see ...
0
votes
1answer
235 views

Debian intel + nvidia optimus hdmi output not recognized

I have an Asus N56VM laptop, with optimus graphics (Intel + Nvidia). It's got an HDMI connection, and I do have a monitor connected to it. In Windows, I can have dual monitor, and so can I in Ubuntu, ...
0
votes
3answers
53 views

Does command substitution create a subshell?

Bash manual says: Command substitution, commands grouped with parentheses, and asynchronous commands are invoked in a subshell environment that is a duplicate of the shell environment, except ...
-1
votes
0answers
20 views

bash shell scripting - How do I check the values stored in a variable?

I ran the code below that returns the number of results as 14 which is correct. NUMBERRESULTS=$(curl -s "privateserver:3000/devices/restful_api_device/… jq '.[]|length') echo ...
4
votes
1answer
1k views

My Debian freezes

I installed a fresh Debian 7 install, but it freezes from time to time, and when it happens (quite often indeed) only the mouse can move around but everything is blocked. All I can do is restart. I ...
-1
votes
0answers
21 views

Decrease time taken to execute script remotely

I have 2 scripts on my prod AIX server, one to suspend db and another one to resume db. When I run the scripts from the prod server the suspend and resume completes in 2 secs. For backup purposes I ...
0
votes
0answers
5 views

Archlinux Raid Setup

So I want to setup a raid setup with 2 drives but I want to have the possibility to upgrade along the line. I watched a video on Linus Tech Tips today and saw he used a Raid card with 2 SAS ...
4
votes
3answers
43 views

How do I get the first branch PID of an application in pstree command?

I want to get PPID of chromium browser. When I launch chromium-browser it launches many child processes with the same name. For example: $ pidof /usr/lib/chromium-browser/chromium-browser 8963 ...
12
votes
2answers
8k views

How do I force a user to change a password at the first time login using ssh?

I'm trying to force a newly created user to change a password at the first time login using ssh. For security reasons I want to give him a secure password until he logs in for the first time. I did ...
7
votes
6answers
1k views

How to grep netcat output

I'm trying to grep live text stream from netcat, but it doesn't work for me: netcat localhost 9090 | grep sender returns nothing, but I'm sure that it should. If I redirect the netcat output to a ...
0
votes
0answers
12 views

Linux equivalent of Powershell get-process to find ProductVersion

Is there a Linux equivalent to the powershell get-process -id 1234 | select * In Powershell I can do this and get a hold load of information about a process. The one I'm particularly interested in ...
0
votes
3answers
16 views

Filtering content from df output

I have the command below to get the filesystem usage on a server: df -k | awk '{print $5 " " $6}' | grep % When executed, the following are the results: My question is how can I make the ...
0
votes
0answers
12 views

'syntax error' at token '' on line 6:

I'm quite new to Linux and I need to build a local policy SElinux module. I'm compiling with audit2allow from a file containing the following lines : module lockx11vnc 1.1; require { class ...
5
votes
2answers
9k views

Kill all background jobs

Is there a more compact form of killing background jobs than: for i in {1..5}; do kill %$i; done Also, {1..5} obviously has a hard-coded magic number in it, how can I make it "N" with N being the ...
0
votes
3answers
33 views

display lines with not more than 4 words in the second column

I have a symbol table of the form M07UP49A0870I422.wav <s> haraa keelaa <bn> </s> M07UP49A0870I423.wav <s> <horn> jau <babble> </s> ...
0
votes
1answer
18 views

File sort by time issue

I have a requirement to identify sequence gap in a set of files. Sequence starts at FILENAME_0001 and ends at FILENAME_9999. After this the sequence is restarted from 0001. To implement a proper ...
0
votes
0answers
6 views

Macbook air smc reset [migrated]

I am trying to reset smh ,but I am not sure whether could I manage or not . I pressed shift + option + control (left side) and power button at the same time but the indicator light didn't change and ...
0
votes
0answers
5 views

Wondershaper won't work for values 9950+

I'm strugling with traffic shaping on my video-streaming server. I'm thrilled how does the wondershaper work, however, I can't set more than 9950 (approx. 1,75MB/s) for uploading. If I set anything ...
0
votes
0answers
21 views

How to connect my machine on the Internet? [on hold]

I use VmWare Fusion and I want my virtual machine to connect to the Internet. I have created 2 network cards for the VM I have also an other network card connected to my Mac with NAT But when I ...
5
votes
1answer
679 views

I get the Error “mysqld dead but pid file exists”

I get the Error mysqld dead but pid file exists This happens every couple of hours. If I restart it works fine and then goes down again. [root@ip-10-0-0-149 log]# df -h Filesystem Size Used Avail ...
0
votes
1answer
12 views

GNU screen locked, how to unlock?

So here's what happened: I ssh to the server with a normal user I run sudo -i I run screen Then I accidentally locked the screen session. to unlock it, it asks for root's password not the ...
0
votes
2answers
17 views

Problem in installing new software - RHEL6

I am currently having difficulty in installing new software/plugins on my rhel6 work pc. I don't have any internet connection on it and have to download anything I require on a separate internet PC ...
2
votes
1answer
36 views

What Command Line tools to connect from Unix to remote Windows?

I need to make some scripts for connecting from a Unix server to several Windows stations for automating file transfers. GUI is not needed and I can't install any additional software into Windows ...
-3
votes
2answers
35 views

How to achieve using ls command [on hold]

I have two files in a directory: abc_160101.txt and abc_a_160101.txt. How to list the first file only with ls command using abc_* or other pattern?
1
vote
1answer
33 views

Get rid of abandoned SSH processes

I have a Linux machine running dropbear as its SSH server. I open many SSH sessions from a client towards that machine, meanwhile the sessions are active I pull out the Ethernet cable from the server ...
15
votes
4answers
29k views

Pass shell variable as a /pattern/ to awk

Having the following in one of my shell functions: function _process () { awk -v l="$line" ' BEGIN {p=0} /'"$1"'/ {p=1} END{ if(p) print l >> "outfile.txt" } ' } , so when called as ...
0
votes
0answers
6 views

Expand partition in Gparted backwards vs. move backwards + expand

Which is quicker and safer?: To enlarge a Gparted partition backwards or: To move the original (smaller) partition backwards, and then enlarge it? Example demonstration Enlarge /dev/sda3 to ...
73
votes
9answers
5k views
+100

On what systems is //foo/bar different from /foo/bar?

Throughout the POSIX specification, there's provision (1, 2, 3...) to allow implementations to treat a path starting with two / specially. A POSIX application (an application written to the POSIX ...
2
votes
2answers
1k views

What encoding does my Konsole support?

How can I check what encoding (ASCII, UTF-8, UTF-16 etc) my Terminal uses? It shouldn't matter, but I am using Konsole on KDE3.5.
0
votes
1answer
39 views
+100

Installing ownCloud with NGINX and SQLite

I have a distro based on Debian Jessie running on an ARM device. How can I install a simple, secure ownCloud 8.2.2 installation that uses NGINX and SQLite without installing Apache and MySQL? Many ...
0
votes
1answer
3k views

Consistent network interface name ubuntu using pci slot

One can set consistent interface naming via mac address by modifying /etc/udev/rules.d/70-persistent-net.rules. Can you establish consistent interface naming by PCI slot number? (I tried but failed) ...
0
votes
2answers
25 views

Debian - How to change Terminal background colors

I am a Git Bash user who is now switching to Debian. Here was my Git Bash's look: Here is my look on Debian: My .bashrc file is completely EMPTY. I have nothing in there currently. I've been ...
1
vote
1answer
29 views

If tmpfs has bigger size than your RAM, how much RAM does it use? Are applications privileged for RAM?

If there is more tmpfs configured than the size of RAM, and there is a lot of stuff stored there in the tmpfs, how is the amount of RAM available to applications determined? If applications need more ...
0
votes
1answer
6 views

NFS mount at boot with autofs on Raspbian Jessie

I'm trying to configure my RPi with Raspbian Jessie to use autofs to mount at boot a NFS share from my QNAP NAS. The manual mount with mount -v -t nfs server://share /mnt/share works and also the ...
0
votes
1answer
11 views

CentOS 6, having hard time with yum, repos and installing packages

I'm having some hard time with yum and hoped to get some help. My end goal is to install the pymssql library for Python. It fails because it needs freetds install. yum install freetds fails with ...
2
votes
1answer
22 views

Found Duplicate PV in LVM disk scan

I have a VPS, and I attached another hard disk to it. It contains the same partitions I have on my current disk; it has / and /boot and swap. I need all data on the / partition. Here is the output of ...

15 30 50 per page