0
votes
0answers
2 views

Start/stop service script like Ubuntu for RedHat

Is there a .sh script that manages starting and stopping the service like Debian/Ubuntu but for Red Hat/Fedora? Looking to place it into the file running some software.
0
votes
0answers
4 views

True vim-like behavior in Chromium

I have been struggling in the browser wars for years, and I think I have finally found an extension (chromium-vim) which allows me to switch away from Firefox (or more recently, palemoon) for good. ...
2
votes
4answers
4k views

Fix terminal title after SSH remote logging to another machine

right now I am using an one-line perl code to change titles of my terminal bars, print("\e]0;@ARGV\7"); but every time after I ssh to another remote machine, the title will be modified by the host ...
0
votes
0answers
6 views

Changing touchpad interrupt

I'm using Arch Linux. Before Arch, I was using Kubuntu. I have a Intel i7 processor with 7200 RPM hard drive. When I'm installing software (not from package managers, but a big proprietary one such as ...
2
votes
2answers
10 views

Using grep/awk/sed to sort and combine 2 files

Ok I am running into a problem. I am taking a wifi log that has MAC addresses listed in it. I want to find out what MAC vendors/manufactors for the devices that are connected to my router. I have 2 ...
0
votes
0answers
14 views

Convert XML to CSV using the command line [duplicate]

How can i do this? Heres an example: (no real data) <text> <Caption>Hello</Caption> <Comment>Hello-Again</Comment> ...
1
vote
1answer
31 views

How to wrap the comma delimited values to the next line without disturbing the other fields using awk or ksh

I have the following input, in which some of the values are comma delimited. I would like decouple each value and print it in the new line. I tried many ways in awk, but no luck. If I have three ...
0
votes
0answers
5 views

Using xslt on OS X?

I asked a question earlier and it was closed to due another answer here So how do I use xslt? man xlst doesn't work but I looked more into it and it seems to be some type of Perl script-thing? I ...
1
vote
1answer
1k views

Linux Mint gets stuck at boot from Live-CD

I am trying to install Linux Mint (Cinnamon) from a CD. It will act like it is loading for a while, the CD drive will make a ton of noise for a while, and then everything just freezes (the CD drive ...
0
votes
1answer
8 views

How can I get my Apache server to point to the correct location?

I am trying to point my apache server to use various packages I have in my Eclipse workspace which is not located in the default Apache server directory. So far, no luck, all I get is Not Found error. ...
4
votes
2answers
2k views

Graphically ask for password in a bash script and retain default sudo timeout setting

The sudo -A (SUDO_ASKPASS) option apparently causes sudo to lose the timeout (e.g., timestamp_timeout) setting. I want to use the sudo -A option but I want to retain the default timeout (e.g., 15 ...
1
vote
4answers
137 views

How do I use the “if” command for multiple conditions?

How do I do this? if [ -f town-*.swf ] then mkdir towns fi This checks if town-*.swf exists, but I also need it to look for city-*.swf among others, so I need something like this: if [ -f ...
0
votes
0answers
17 views

Why is a multiline stdout of a command considered as a single line?

I'm experimenting with while read syntax and there is a thing I don't understand. The most basic scenario which reproduces the problem is the following: a bash script a.sh calls another script b.sh ...
0
votes
1answer
26 views

unsquashfs fails

Debian 7.0, I extracted the firmware.bin image using binwalk. The extracted content is squashfs-root folder containing subdirectories, and a separate file.squashfs file. I tried unsquashfs this ...
3
votes
1answer
13 views

Why does BASH process substitution not work with some commands?

On occasion process substitution will not work as expected. Here is an example: Input: gcc <(echo 'int main(){return 0;}') Output: /dev/fd/63: file not recognized: Illegal seek collect2: ...
1
vote
1answer
26 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 > ...
2
votes
3answers
37 views

Where does `hostname` store the hostname that I've set?

This is quite puzzling. Does anyone know where the hostname command stores and reads hostname from? I thought it was /etc/hostname but there is no such file on this Linux system that I'm using. I ...
6
votes
1answer
470 views

Prevent focus stealing in Awesome WM, especially from Skype

When I use KDE with Awesome WM and get a new message in Skype, Plasma Desktop steals the focus. This drives me crazy as I cannot just continue typing in my current window. Is there some way to prevent ...
4
votes
2answers
222 views

How can I peek at the output of a running crontab task on OpenBSD?

I have an hourly hour-long crontab task running with some mtr (traceroute) output every 10 minutes (that is going to go for over an hour prior to it being emailed back to me), and I want to see the ...
8
votes
2answers
10k views

Why doesn't my ~/.bash_profile work?

I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash. After I start my graphical desktop environment and run terminal emulator from it, I could see that .bash_profile is ...
1
vote
0answers
4 views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
0
votes
1answer
17 views

Why distros don't have a unique version which continously provide updates? [on hold]

I don't see the point why distros, instead of building new versions, don't have a unique version, which continously provide upgrades for the linux kernel, desktop environment, software packages, etc. ...
0
votes
0answers
4 views

ols 5/rhel 5 can't establish secure connection to server after POODLE patch

My workplace recently patched one of our servers to address the POODLE vulnerability. Since then older Oracle Linux 5 clients (based on RHEL 5) can no longer connect to the server with any ...
1
vote
0answers
9 views

CentOS 7 cpupower not setting the CPU's to maximum

On my machine, i have power savings disable on the BIOS. When I run Ubuntu on this machine, the CPU's are running maximum at 2100 MHz. However, when I'm running CentOS 7, even with the scaling ...
1
vote
1answer
35 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 ...
4
votes
1answer
558 views

File name encoding wrong in KDE, but correct in GTK/tty1/

I'm on a new Linux (installed yesterday). When I access files from old partitions their file names have incorrect encoding (ä instead of ä, same for other umlauts) inside KDE apps like dolphin and ...
138
votes
2answers
26k views

Difference between nohup, disown and &

What is the difference between $ nohup foo and $ foo & and $ foo & $ disown
11
votes
4answers
761 views

Drop a specific file from the Linux filesystem cache?

I know I can drop everything from the Linux filesystem cache, but is there a way to drop just one specific file? Or prevent a file from being cached? Or tell a process not to cache any files it ...
0
votes
1answer
18 views

Can we preserve the timestamps of files when extracting .zip archive?

I want to unzip a .zip archive, and preserve the timestamps of the files extracted. But this command doesn't preserve the timestamps: unzip my.zip I saw this post in 2011, and wonder if there is a ...
15
votes
7answers
585 views

How to Find a Fugitive Crontab

A few years ago I setup a cron job to automatically ping a URL every minute as part of a monitoring system (that's oversimplification, but it'll do for this question). Because I'm a horrible person, I ...
11
votes
9answers
1k views

Detect init system using the shell

This may have more to do with detecting operating systems, but I specifically need the init system currently in use on the system. Fedora 15 now uses systemd, Ubuntu uses Upstart, while others use ...
0
votes
1answer
3 views

Why process wasn't killed after closing SSH connection

I launched this command via SSH on a Debian server: watch --precise -n 1 top -b -n 1 -p 27330 | tail -n 1 | awk "{print \$9}" >> 27330.log & After a while I quit my terminal. When I ...
0
votes
1answer
17 views

Ubuntu 12.04 on Acer C720 - Touchpad problem after HWE update

Couple of days ago, I rebooted my Ubuntu 12.04 and it asked me to update HWE or update to a newer version of the system. I decided to update HWE. Firstly it wasn't succesful because of the lack of the ...
3
votes
1answer
863 views

Endless pulseaudio error logging: failed to acquire autospawn lock

I have an issue with pulseaudio logging error messages in a loop and wonder how I can fix them: Aug 7 20:22:17 s pulseaudio[25638]: lock-autospawn.c: Cannot access autospawn lock. Aug 7 20:22:17 s ...
0
votes
2answers
29 views

print the /etc/shadow file in the console

How do I change the permissions of an executable file to access the /etc/shadow file? So far I have the following bash script: #!/bin/bash gcc print.c -o print chmod +s print ./print exit 0 and ...
0
votes
0answers
10 views

CentOS 7 and howto extend my current WIFI network

I am running CentOS 7 and I have both a wired cable and a WIFI on my box. The WIFI on my CentOS box I would really like to use to extend my current WIFI network if this is possible. My current network ...
0
votes
0answers
6 views

Is there a solution for scanning webserver files for malicious code?

I have seen several times people move code into web servers now that had malicious code embedded into their HTML, php and other documents. These then get served up from the new server until they are ...
0
votes
1answer
13 views

archive a directory and its content to a zip archive

I ran zip book my/ it created a zip file book.zip, but with only my/ as its content, and nothing under its my/, but there is content under ./my/. I wonder how I can zip it correctly?
1
vote
0answers
12 views

mount.cifs error(2): No such file or directory when using a prefixpath

I tried this command: mount -t cifs //server/share/directory /mnt/directory -o credentials=/path/to/cifs.credentials --verbose Response is: mount.cifs kernel mount options: ip=<IP of ...
23
votes
2answers
976 views

Is >&- more efficient than >/dev/null?

Yesterday I read this SO comment which says that in the shell (at least bash) >&- "has the same result as" >/dev/null. That comment actually refers to the ABS guide as the source of its ...
4
votes
1answer
2k views

How to clear journalctl

I couldn't find in google any safe way to clear systemd journal. Do anyone know any safe and reliable way to do so? Added: As a reason, let's say I was experimenting with something and my logs got ...
0
votes
0answers
17 views

c++ executable is complaining about some libraries missing?

I have my C++ executable which if I am running on machineA it works fine but if I run the same executable on machineB (which is a new machine I got) it fails and prints out some error messages - ...
1
vote
0answers
9 views

Xclip not copying linebreaks?

$ cat test a b xclip test Pasting the content somewhere will result in a b Any idea why? EDIT: I'm running archlinux (64bit) and I paste the code via mouse wheel click (though I also tried ...
7
votes
6answers
746 views

“find: .: No such file or directory” while using find on the current directory

Find command seems not to work at all. For example, I'm in a directory where there absolutely is file named index.php and I execute this: [root@server htdocs]# find . -name "index.php" find: .: No ...
0
votes
0answers
4 views

Ink level checking for epson on Centos

I have a SX-130 epson printer , i can't get to see the ink level , i tried logging to the printer properties but it says that it doesn't report any ink level infos , is there any way that makes me ...
0
votes
0answers
5 views

Replacement queue now that batch doesn't accept input files?

Background I work at a research institute, and have for a long time used the batch command to submit job queues to our machines. However, a recent update changed the batch command to be ...
2
votes
4answers
43 views

Linux log file structure change, abnormal (?) sed behaviour

Ok, so I tried to get this 0x0000: 4500 0044 68f7 4000 4011 25c7 8083 d0bf E..Dh.@.@.%..... 0x0010: 8083 da24 85b1 15b3 0030 1e8b 3132 3033 ...$.....0..1203 0x0020: 3132 2e37 3836 3036 2c20 ...
0
votes
0answers
15 views

Specify a file with special characters in its name [duplicate]

$ ls -ltr total 8708 -rwxrwx--- 1 root plugdev 8293 Oct 17 02:39 --layout $ rm *ayout rm: unrecognized option '--layout' $ rm "*ayout" rm: cannot remove `*ayout': No such file or directory ...
6
votes
1answer
133 views

Does bash return anything when it runs a command?

I was found the guide to test if there is a bug in Bash. Namely, when x='() { :;}; echo VULNERABLE' bash -c x does not return anything, it is vulnerable. But are there cases like in C that bash ...
0
votes
1answer
20 views

Back-up script via bash — issues with file paths?

I'm trying to run a back-up bash script in via Plesk scheduled tasks on a CentOS GoDaddy Managed Dedicated Server. I'm having a frustrating amount of trouble with this (made worse by the fact that it ...

15 30 50 per page