2
votes
1answer
5 views

How do I repeat the last command without using the arrow keys?

I know I can use Up to iterate through previous commands. Running the last command simply involves Up+Enter. However, I was thinking of buying the Happy Hacking Keyboard as I spend a lot of time in ...
0
votes
0answers
2 views

Puppet Master not serving out/reading manifests

I have a really strange issue with my Puppet Master. I can't seem to get it to serve my manifests properly. I have installed manifests in two locations: ...
1
vote
3answers
11 views

How to find and empty some directories

I'd like to find and delete the contents while leaving the directories themselves intact. The following find /data1 -name MyTargetDir -type d -exec rm -rv {} \; and find /data1 -name ...
2
votes
2answers
15 views

Fast and slow symlinks

From http://en.wikipedia.org/wiki/Symbolic_link#Storage_of_symbolic_links Early implementations of symbolic links stored the symbolic link information as data in regular files. The file ...
1
vote
1answer
9 views

Explain this bash script

Consider the following bash script: #!/bin/bash echo "${1##*.}" This script prints the extension of a file if the file name is supplied as the first command line argument, something like ...
1
vote
1answer
299 views

How to restrict output of iw dev wlp3s0 scan?

I am trying to configure a wireless network on a newly installed Arch Linux. The command iw dev wlp3s0 scan gives information about all the found networks. I only need the information about my SSID.
1
vote
1answer
7 views

Read Multiple Entries from an Input File

I wrote a program in Fortran that asks me for latitude and longitude and the name of the output file every time I run it. It works great. What I have been meaning to do is run this program for the ...
0
votes
0answers
10 views

why this command not work on AIX?

I want to remove UTF-8 BOM from a file using this command: sed '1 s/\xEF\xBB\xBF//' old.java > tmp.java But it did not work. I am running with ksh on AIX 7.1
0
votes
1answer
6 views

Installing Steam on Debian Wheezy

I downloaded the .deb file from the steam website, but couldn't install it as it complained about having and "outdated" version of libc6. I look around and apparently I have to add jessie sources to ...
1
vote
1answer
20 views

Solved - Solaris 10 - Is it possible to reboot a system from a startup script?

I have a Solaris 10 test guest logical domain (LDom). I plan to have the network on this be reconfigured before rebooting using a startup script in /etc/rc0.d. At the moment, when the system boots, ...
0
votes
1answer
49 views

/dev/root does not exist in CentOS 7

I take an error message when installing CentOS 7 from usb. What is it solution?
3
votes
3answers
2k views

Problem with vim when logged in as root

When I login as root or edit a file by sudo mode all of the options in my /etc/vimrc are not working (e.g. highlight line-number etc.)
2
votes
2answers
701 views

NVIDIA driver upgrade failed

I downloaded the latest(331.49), tried to install, but failed. I compiled the kernel module and at the end of the installation it said that it went successful. But on bootup it said: version mismatch, ...
1
vote
0answers
15 views

Can use Password authentication with SFTP even though “PasswordAuthentication no” in /etc/ssh/sshd_config

I have enabled SSH-keys based authentication on the Ubuntu 14.04 server, disabled root login using SSH and can connect successfully using SSH-keys based authentication with my user account blahblah on ...
4
votes
1answer
21 views

grep variable-length optional text

I would like to search for edge-anchored text that has a block of preceding optional text, any amount of which can be included in the match. For instance, supposing I am trying to find ^xyz but would ...
1
vote
3answers
14 views

Where can I find the list of [[ ]] options?

like [[ -s file ]] [[ -z string ]] preferably on the web. I looked on the ldp site but couldn't find them The man page (man [) is helpful but I am looking for a more compact list.
0
votes
2answers
58 views

Why does Linux only see 3832MB of my 4096MB of RAM?

I am setting up a lot of 64-bit RedHat VMs (VMware Vsphere) for our development department in my company. Most of them start with 4096MB of RAM, but Linux only seems to recognize 3832MB. Can anyone ...
0
votes
1answer
27 views

Relation between the filename and inode of a file

For a file, it is said that its "filename" points to its inode. Does it mean that its "file name" is a data structure that has or is a pointer pointing to its inode? It is also said that its ...
1
vote
2answers
25 views

How can I sort a .txt file by two columns?

Feb 7 domainserver dovecot[37495]: auth(default): od(tjones): lookup failed for user: tjones Above is a sample output of what I'd like to sort. I'd like to sort by date on the first column, but ...
0
votes
0answers
17 views

How do you adjust other user's job priority?

Let's say your coworker started a very intense process and went home. It's occupying most of the CPU resources, and you can't do your stuffs because of it. If it was your own process, you could run ...
0
votes
1answer
11 views

Point program without garbaging up alias (~/.bashrc)

What is the correct way to point to a program/script without passing the command through aliases in the bashrc? For example: I create a custom script MyScript.sh. I wish to create a command that can ...
2
votes
1answer
22 views

How to connect to ssh-server running on embedded linux without /etc/passwd?

After installing ssh server on my remote machine (which runs embedded Linux), I tried to connect to ssh server from host machine but it failed. This is because I could not specify user account when ...
1
vote
1answer
28 views

How to check my account on embedded linux without “/etc/passwd”?

On some embedded linux systems, there is no /etc/passwd file and /etc directory is not writable (which means I cannot set user account and password?). Then what is my (default) account name and ...
0
votes
0answers
5 views

home-built router - slow throughput

I am having slow performance with my home-built router. Compared to a stock Verizon (actiontec) router, it gets about 60 Mpbs down and 30 Mpbs up whereas I get about 15 Mbps and 20 Mbps up. I ...
1
vote
0answers
17 views
+50

Unreferenced inodes on EC2 linux instance

I have an Amazon EC2 instance which I am using as a NFS file server. It's using a 5x1TB volume RAID0 array. The system is very I/O intensive and files are being written/copied/deleted through the NFS ...
0
votes
1answer
733 views

Changing title without changing prompt on Cygwin

I have the following shell script function from this site that allows me to change the title in both Putty and Cygwin. In Putty connected to a Linux host it changes the title and leaves the prompt as ...
1
vote
1answer
18 views

What relationships do tie ACL mask and standard group permission on a file?

At first I create a file and check it's standard permissions and ACL entries: $ touch file; ls -l file; getfacl file -rw-r--r-- 1 user user 0 Jul 30 16:26 file # file: file # owner: user # group: ...
0
votes
1answer
7 views

/usr/bin/X :0 -audit process

Hello I am trying to solve some internet problems that I have. It is a university computer and I do not have root access. I want to understand what is this processor, that root has started, and if you ...
0
votes
2answers
41 views

How to ssh with private key from other linux system?

I log in to my server (server1) with user, password and private key: key.ppk. I want to ssh from server2 to server1. So I do the following: ssh -i /srv/key.ppk root@XX.XX.XXX.XXX When ...
0
votes
0answers
18 views

combining files of different lengths into csv?

How do I combine multiple files ( of different length ) into one / a csv? I've used paste and column, but it merges the latter (which has the most) left to fill the empty rows. I have 10 files, with ...
2
votes
0answers
7 views

Setup LDAP client on RHEL 6.5

I am preparing for RHCSA exams and trying to setup LDAP client on my RHEL 6.5 box I am connecting to the online testing LDAP server Here I don't understand the relationship among following 3 files, ...
1
vote
1answer
4 views

Creating a GnuPG keyring for apache

Here's the scenario, we're using GnuPG to encrypt data between 2 web servers. 1 is on RHEL. GnuPG will be accessed through cgi scripts to encrypt and decrypt. So I need a keyring that the apache user ...
0
votes
1answer
33 views

Compare two strings in a shell script [duplicate]

My script needs two arguments. I want to hide the error message if someone calls the script with script.sh --help so I tired this: if [ $# -ne 2 ] ; then if [ "$1" -ne "--help" ]; then echo ...
3
votes
2answers
28 views

Get package version of file

I've deleted a file in /etc provided by package packageA. Is there a way that I can reinstall only that file, provided I know where it is and which package provides it? I'm running Ubuntu 12.04 and ...
17
votes
7answers
1k views

How to delete this undeletable directory?

I untarred a corrupt tar file, and managed to end up with some directory that I can not delete, If I try to delete it, it seems like it can not be found, but ls shows it's present, both with bash and ...
0
votes
1answer
252 views

Samba daemon hammering CPU on CentOS 5.6 VM on bootup

I have a problem where my Centos 5.6 VM is running very slow on my Win7 machine, and looking at top I can see that the Samba daemon smbd is sitting at the top of the list hitting the CPU big time, ...
0
votes
1answer
29 views

nc command not found on SuSE

I'm trying to use the nc command on SuSE Linux Enterprise Desktop 11. I executed this line: nc ­-4ul 192.0.2.2 50000 But I got this.- bash: nc: command not found This is the first time that I ...
0
votes
1answer
441 views

How do I set up of IBM Cognos Business Intelligence with an Apache web server?

I'm trying to put together an Apache configuration for quickly getting IBM Cognos Business Intelligence Server up and running. But I got no idea of how to do it, could someone help me?
0
votes
0answers
7 views

Not receiving any data from ACM device

I am unable to receive any data from a CDC-ACM device on my embedded Linux device. My Linux embedded device is running kernel 2.6.16.11 and has a armv5tejl processor. When plugged in, I see the ...
6
votes
4answers
95 views

Find newest file. Multiple Filetype restrictions

I want to write a command that gives me the newest file in a directory recursively. But that's not my only limitation. The files has to be an mp3 or a jpg file. (case insensitive prefered) I only need ...
7
votes
2answers
136 views

set tab width for less output

Is it possible for less output to set the tab width to a number X as it is for cat?
4
votes
1answer
33 views

How can I send reads and writes on a single file descriptor to different places?

I have a Linux executable foo that reads input from fd 0 and writes output to fd 0 (not fd 1). This works just fine for interactive use in the terminal. From the shell command line, how can I execute ...
1
vote
3answers
133 views

What is $() in a command?

What is $() in Linux Shell Commands? For example: chmod 777 $(pwd)
0
votes
1answer
14 views

Solutions are telling me to update libc6, but it's already updated. How do I fix `GLIBC_2.15' not found?

I've been trying to run a Garry's Mod server through Open Game Panel all day. I've tried to fix almost all errors, but I can't fix this one. Failed to open dedicated_srv.so ...
1
vote
0answers
9 views

Persistent directory stacks across sessions in zsh

I would like to share my directory stack (the one accessed with dirs) across sessions and tmux panes/windows. In the zshbuiltins man page I have found autopushd to add every directory I switch into ...
-1
votes
0answers
30 views

Cannot access local website served by Apache by its name

I am trying to configure my web server to resolve to domain and later integrate SSL, but I am getting nowhere. To start, here are the content of my named.conf, a zone file named rek1653.lab.zone, and ...
4
votes
0answers
41 views

How do I execute in background / return early?

For reference, I'm using phpseclib to control a remote SSH server using the 'root' account. I have to start/stop a java process which is ran in the background. Stopping works fine with killall java ...
0
votes
1answer
28 views

chown as non-root user

I tried to chown a file to root, that I own, But my machine says I'm not permitted. I've googled a bit and found a few topics that say chown is a root only command. But others say that's not true. Am ...
-2
votes
1answer
34 views

Installation script for OpenERP, creating directories under /var

I would like to know what this code means. I found it on the OpenERP forum. It is supposed to run on Linux CentOS. adduser openerp DIR="/var/run/openerp /var/log/openerp" for NAME in $DIR do if [ ! ...
0
votes
1answer
237 views

Other than a kill command or a system kill(pid, signal) command, what can cause a SIGKILL to occur for a process?

My process is mysteriously getting a SIGKILL on AIX. Running trace on the system indicated the process got a signal sent by itself via the kill(pid, SIGNAL) system call. I checked my code and I ...

15 30 50 per page