0
votes
0answers
3 views

Where does `history` stores command history?

It's awkward to get different results from ~/.bash_history and the history command itself. Where the history command reads data from? And bonus question: how to get that knowledge empirically? ...
0
votes
1answer
13 views

Is it possible to access these directories?

I'm trying to recover data from my Ready NasDuo which is Spark based with a 16kb block size. I've followed another post and successfully mounted the drive using a command like sudo fuseext2 -o ...
0
votes
1answer
11 views

Sharing a terminal with multiple users (with screen or otherwise)

I am setting up a server where there are multiple developers working on multiple applications. I have figured out how to give certain developers shared access to the necessary application directories ...
0
votes
0answers
3 views

Reverse DNS PTR lookups ocurring on each connection

I'm running a Debian-based VPS (Linux vps 2.6.32-042stab092.3 #1 SMP Sun Jul 20 13:27:24 MSK 2014 x86_64 GNU/Linux) which is behaving a bit strange. Whenever a new connection is established to it, it ...
0
votes
0answers
3 views

File uploads and max_execution_time and request_terminate_timeout

In case of HTTP file uploads (nginx+php5-fpm) does max_execution_time (in /etc/php5/fpm/php.ini) or request_terminate_timeout (in /etc/php5/fpm/pool.d/www.conf) also include the time the file took to ...
0
votes
0answers
6 views

indicator-cpufreq in arch linux

I'm an Ubuntu user testing out Arch Linux. So far I'm happy. On Ubuntu I used the indicator-cpufreq applet to control power profile both on Unity and Gnome-shell. On Arch, I cannot figure out how ...
0
votes
1answer
2 views

Linux Volume Encryption: Possible to specify your own Encryption Tool?

I want to use Volume Encryption on my Debian machine. Linux does have such a tool for that. But I want to use my own encryption tool to encrypt a partition. Now, is it somehow possible to specify it ...
0
votes
0answers
16 views

Apache not listening on port 443

I've purchased an SSL and I'm trying to set it on a browser. The port is forwarded in the router to the server, and I believe that SSL certificate is installed correctly (the apache starts OK). I ...
1
vote
1answer
28 views

How to remove prefix from multiple files in a directory

I have ~250 files with the name: no_responseEvent_2002.02.07.03.15.56.970/ no_responseEvent_2002.02.10.01.47.07.450/ no_responseEvent_2002.02.13.14.18.46.00/ I want to remove ...
0
votes
0answers
24 views

How to insert the entry into the newline?

I have the following entry in a tab delimited file test1.txt key1 10|15 20 30 11|XXX 21 31 Is there any way I can transform this file into the below format? I would like bring pipe delimited values ...
0
votes
1answer
18 views

Using find to search and report files that have one but not two keywords inside

I'd like to use find to report files under the following conditions: If the file contains the word "Serializable" Then report the file if it does NOT contain the word "serialVersionUID" Something ...
0
votes
0answers
7 views

Linux log file structure change for usage with kst

My file (tcp dump from networked sensors) has this shape: 20:06:57.049686 IP (tos 0x0, ttl 64, id 26871, offset 0, flags [DF], proto UDP (17), length 68) e108-193.eduroam.tugraz.ac.at.34225 > ...
1
vote
1answer
13 views

How to logout CSH session?

I connected to CentOS server via SSH. In SSH terminal I executed csh command mistakenly. Now when I use logout command it throws Not a login shell. output. How can I logout CSH and return ...
1
vote
0answers
13 views

grep not matching patterns in scripted session

We have a bunch of reports that run on a Linux server and I am trying to automate checking them and bringing back relevant parts using Powershell. I'm using a module called SSH-Sessions to connect to ...
0
votes
2answers
33 views

How to use sudo to delete the contents of a directory

I have a legitimate need to empty a directory to which my account does not have access (it is a cache directory used by an application, and is owned by the account that runs the application.) My ...
0
votes
0answers
19 views

sed: -e expression #1, char 4: unknown command:

Could someone tell me what does this reply mean ? sed: -e expression #1, char 4: unknown command: ` ' I get it when I use : sed -n "$num"p $javaFile >> ~/Desktop/$1_sql.txt for i in `seq 5 ...
4
votes
4answers
41 views

Using jq to extract values and format in CSV

I have the below json file: { "data": [ { "displayName": "First Name", "rank": 1, "value": "VALUE" }, { "displayName": "Last Name", "rank": 2, ...
1
vote
0answers
16 views

Command that can find files that are not referenced by other files and then delete them

I was wondering if anyone knew how I could go about writing a grep command that recursively finds files that are not being referenced/used in a specific file and/or a directory of files, and then ...
1
vote
0answers
13 views

Why does music still loop, when my PC freezes? [on hold]

Unfortunately it happens rather regularly, that some i/o job or some other activity clogs all the cpu power on my rather old linux machine and leaves me with a frozen desktop, where not even the mouse ...
0
votes
2answers
11 views

du command combined with find -mmin

I want to have an idea of how much archivelogs the database is generating daily, so I did: find /u02/archivelog -mmin -1440 | du -sh and got 220GB, which is the total size of all files in that ...
1
vote
0answers
11 views

nameservers erased after systemctl restart network.service

I'm working on centos 7, and having problematic behaviour when setting network interface from dhcp to static ip configuration. I edit /etc/resolv.conf, and run systemctl restart network.service The ...
0
votes
0answers
17 views

Where and how can I make copies on important files? [on hold]

I would like to make copies on my important works in the case that something happens in my computer, or that I can continue my works in my cottage. How can I set my computer such that it can ...
0
votes
0answers
9 views

How to Install PHP 5.3.7 On Godaddy Linux VPS using SSH

I have bought a New VPS from Godaddy. They supported PHP 5.3.5 earlier and then 5.4.34 but I need to use PHP 5.3.7 on my VPS.
-1
votes
0answers
26 views

why is my delete function not working [on hold]

#!/bin/bash record() { inodeVar=$(ls -i $1 | cut -d " " -f1) mv $1 $1"_"$inodeVar } Restore() { echo $1 >> ~/.restore.info } # Check whether RMCFG is null and creates bin ...
1
vote
1answer
16 views

Yet another problem mounting SD cards!

I've got an SD card that's not mounting properly. /dev/mmcblk0 exists, but /dev/mmcblk0p1 doesn't when I insert the card. The output of fdisk -l /dev/mmcblk0 is: 4 heads, 16 sectors/track, 242560 ...
2
votes
0answers
21 views

Why is ImageMagick's `compare` command so slow and is there an alternative?

I have a shell script running on an little Atom based Micro-ATX box that is doing some watchdog-like functions for a number of devices on a local network. One of the things it's doing is monitoring ...
3
votes
2answers
153 views

grep on a variable

Lets say I have a variable line="This is where we select from a table." now I want to grep how many times does select occur in the sentence. grep -ci "select" $line I tried that, but it did not ...
0
votes
1answer
12 views

Force-Mount windows hibernated partition in Read/Write mode

I have a dual boot system with a NTFS partition (C:) dedicated to the windows 8 OS files, an EXT4 partition dedicated to Linux Mint 17 and another NTFS partition (E:) which I would like to use for ...
0
votes
0answers
18 views

route -n gives output “route: fscanf”

If I boot my system and no interface has an IP address I get the above output. However if I give an interface an IP, even if I remove it again, this will disappear. Why does this happen? Is it that ...
1
vote
3answers
34 views

Sorting directories by last modified date/time of the same-named contained file

Is it possible, using grep, find, etc, to sort a list of directories by the last modified date of the same-named file (e.g., file.php) within? For example: domain1/file.php (last modified 20-Jan-2014 ...
1
vote
1answer
12 views

Arch Linux: Should I keep the dhcpd service if I'm using connman?

Running systemd-analyze blame tells me that dhcpd.service is running. I remember enabling this in order to get automatic Ethernet connection back when I was installing Arch. Now I installed connman ...
0
votes
1answer
18 views

Start a background process from a script and manage it when the script ends

I'd like to run and configure a process similarly to a daemon from a script. My shell is zsh emulated under Cygwin and the daemon is SFK, a basic FTP server. For what matters here, the script can ...
0
votes
1answer
29 views

Place grub on virtual disk

To learn about Linux startup process I placed grub in a disk image file and tried to boot using qemu. I currently has not put any kernel image into the drive just grub. I installed grub using kpartx ...
1
vote
1answer
17 views

Specifiy Unix TimeStamp Range in Parameter

I am launching a mrjob in bash and need to pass in as parameters a range of gz files which have unix time stamps in them as: filename_9127381923.gz. How to do this in the simplest possible way? I can ...
0
votes
0answers
10 views

nginx configuration file rewrite problem

My client moved to new server which nginx & percona server. Problem is the forward slash is being removed from end of the url. as you can see on the picture http://imgur.com/8OAUQZb therefor the ...
6
votes
4answers
223 views

combine two text files with adding some separator between?

cat file1 file2 will combine two text files. But if I want to add some separator between, like a line or two of ********************************, do I have to open the first file, and add the line at ...
0
votes
1answer
14 views

Linux mint wifi device not on rfkill list

I just installed Linux Mint 16 Cinnamon. But I could not get the wifi device. I googled and found rfkill list but only the bluetooth appears on the list. When I turn of the hardware switch even the ...
3
votes
3answers
147 views

How to get all IPtables rules

I'm trying to see a list of all the rules in IPtables in a Debian 7 server. when I try: iptables -L -n I only get one rule (which I entered 5 minutes ago). I have many others, for port 80, mysql ...
4
votes
1answer
217 views

Why does “cat /tmp/out1 > /tmp/in2 &” appear as “bash” with the “ps” command?

Consider: mkfifo /tmp/out1 mkfifo /tmp/in2 cat /tmp/out1 > /tmp/in2 & When I run ps It appears as "bash" in the CMD section. Why?
-1
votes
1answer
19 views

Old script on systemV

I want to add a group for permit user belong to group to shutdown the machine system is old sysv unix,with old bourne sh. I did { groufind=`groups|grep system|awk '{print $2}'` } groupscheck ...
0
votes
0answers
10 views

How can I run the topcoder arena via ssh on a remote machine but use the GUI on another machine? [duplicate]

I would like to ssh on a machine and run the topcoder arena there. Then I would like to use the arena on the machine that created the ssh connection. I tried ssh -X -C ip this worked well, however ...
1
vote
1answer
13 views

How can I use arcfour encryption over sshfs?

A recent update to my Raspbian Raspberry Pi has made arcfour sshfs fail. From the client: $ sshfs pi:~ /tmp/alskdjflkasdf/ -o Ciphers=arcfour read: Connection reset by peer On the server at ...
2
votes
0answers
14 views

Cross compiling GLIBC for my ARM SoC

I am seeing something really weird inside a chroot-ed Debian armel environment. But first, a bit of backstory... This is long, but the question is complex and any potential help depends on knowing ...
2
votes
1answer
18 views

PHP CLI and Bash - change behaviour of PHP keyword

Our hosting providers have installed 3 versions of PHP onto our linux box and when I SSH into it the command php points to use/bin/php which is version 5.2, the command php-5.4 points to ...
0
votes
1answer
14 views

Hexdump binary file while honoring separators

I have a binary file where records are separated by newlines. hexdump just dumps everything with a fixed column width. Is there a tool to hexdump this file, while honoring the newline separator? (Any ...
4
votes
1answer
58 views

While command not found and syntax error near unexpected token [on hold]

I am trying to write a shell script that takes a string input from a user, asks for a file name and reports whether that string is present in the file. Below is my current script. #!/bin/bash while ...
0
votes
2answers
17 views

SVN repo on WINDOWS share. How to access from UBUNTU?

For a long time we put SVN repositories on windows share (worked great as only one person was working on one project). Now, we are moving dev machines away from windows to ubuntu and we need to ...
0
votes
0answers
24 views

Allow Linux to connect with addresses containing domains with dash followed by dot

I can't connect with addresses containing domains with dash followed by dot, for example: http://example-.domain.tld/ The only solution I found for this is adding domains like those to /etc/hosts, ...
0
votes
0answers
10 views

problem installing oracle instant client on my centOS machine

I have downloaded and extracted the rpm package instantclient-basic-linux.x64-12.1.0.1.0.zip from oracle website and extracted it in /usr/lib/ where the current path is: ...
1
vote
1answer
9 views

Fedora 20 ACPI issues on black screen before log on

I installed Fedora 20 64-bit with the standard Gnome3 desktop environment and while booting a black screen is displayed with 4 messages in the following form: Failed to find handle for ACPI object ...

15 30 50 per page