0
votes
0answers
3 views

ulimit logging?

When a user/process hits a ulimit is there a way to log this at the system level? I cannot find any logging information in /var/log/messages, or dmesg. I did some preliminary research and the answer ...
0
votes
0answers
6 views

Add entries to an array inside a loop

I am trying to update an array in a linux tcsh script. The script uses a while loop, and I want to add elements to the array every time the loop iterates. Is there a better way to do this? ...
1
vote
1answer
20 views

Execute command that was displayed on the screen as a message

A message is displayed many times on the screen after entering certain command. I need to retype the entire suggested command or copy and paste it. Is there a shortcut to do the same using the ...
0
votes
1answer
7 views

restricting remote vpn login to ip address in CentOS 7

I have read that OpenSSH itself does not support authentication via specific IP address. In a CentOS 7 installation on a web server, how would one configure the login so that a user would not only ...
0
votes
1answer
5 views

Rolling Release Dual Boot

Right now I am using Ubuntu GNOME and Widows 8 dual boot on the same hard drive. But my Gnome desktop is laggy and I don't like it very much. Because of that I am thinking about switching to a KDE ...
1
vote
3answers
26 views

How I can determine the latest version in URL?

I'm trying to put a "function" inside of a script to install the latest version of "TeamSpeak3" Client and make all configurations. My problem is I don't know how to make a function to test the ...
0
votes
0answers
7 views

Perl failed set locale on AIX 7.1

After setting user language to Chinese with GB18030 encoding in SMIT, following env variable was added in user's .profile: LANG=Zh_CN LC_MESSAGE=%l.%c ...
0
votes
1answer
17 views

Unable to allow SSH access for new user

I currently have an issue, what I am trying to do is disable the root login and use ssh to login as a new user, then su to root when needed. I am unable to actually allow the user to login through ...
-1
votes
0answers
10 views

software-update in ubnntu14.4 [on hold]

this is errror when i tray cange download from W:Ignoring file 'playonlinux.l' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension, W:Ignoring file ...
0
votes
2answers
24 views

Why doesn't this pipe command work at this special bash script?

That script test.sh doesn't work after used pipe command. The result shows nothing. Why? #!/bin/bash fun=$( echo $1 ) echo "$fun" commands are as follows, $ echo 1 | ./test.sh
0
votes
2answers
13 views

“WARNING: The character device /dev/vboxdrv does not exist.”

WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-amd64. You will not be able ...
2
votes
1answer
16 views

Is there an easy way to rebuild all ports?

In the upgrade process for 10.1-RELEASE, I'm prompted with this: Installing updates... Completing this upgrade requires removing old shared object files. Please rebuild all installed 3rd party ...
-2
votes
0answers
29 views

Why I can't anything in Linux Ubuntu terminal? [on hold]

I can't download anything in Ubuntu terminal. I would like to download the gnome commander for reach the FTP (because with it is easier). Here the download status is 0%, in turn there is net. If I ...
0
votes
1answer
22 views

list of selectable units for journalctl

In a CentOS 7 server, I want to get the list of selectable units for which journalctl can produce logs. How can I change the following code to accomplish this? journalctl --output=json-pretty | ...
0
votes
0answers
14 views

Get similar links from one site using wget [on hold]

I have a site (http://a-site.com) with many links like that. How can I use wget to crawl and grep all similar links to a file? <a href="/user/333333/follow_user" class="btn" ...
3
votes
1answer
45 views

grep fixed string at end of line

I need to grep for string containing special characters and make sure it is at the end of the line For example, in list: abc defg[h]ij I want to grep for defg[h]ij$ xyz 123*456 I want to grep for ...
-11
votes
0answers
50 views

Why do people insist on keeping Linux in the 80s? [on hold]

This is a rant, but one I feel is totally justified and deserves somebody from the Linux community to answer. In short, what exactly is the purpose of an OS which requires years of memorising commands ...
0
votes
0answers
8 views

SELinux error when yum updated pcre package

When doing a yum update, I got the following errors: Updating : pcre-8.33-7.fc20.i686 82/164 libsepol.module_package_read_offsets: module package header ...
0
votes
1answer
15 views

Find files that have a confirmed duplicate in same directory recursively

Say I have the following directory structure: root |-- dirA |-- file.jpg |-- file-001.jpg <-- dup |-- file2.jpg |-- file3.jpg |-- dirB |-- fileA.jpg |-- ...
1
vote
1answer
20 views

How do I specify command invocation for a mandatory short or long option?

I'm writing a specification for a tool that needs a -f / --foo option with a mandatory argument BAR, so for example these are valid calls: tool -f BAR tool --foo BAR How do I specify this syntax in ...
1
vote
0answers
8 views

TFTP put works with files in pwd but fails with absolutely pathed filenames

The following command works as expected: tftp <tftp_server_name> -c put some_file However, the following command fails: tftp <tftp_server_name> -c put /absolute/path/to/some_file ...
1
vote
1answer
25 views

log files in CentOS 7 [on hold]

In CentOS 7, how can I locate and view all the system logs that tell me who tried to enter the system, who got in, what processes they contacted, what they accomplished, etc. I want to be able to ...
2
votes
1answer
20 views

Why is my computer sluggish after downloading a lot?

When I download a lot of data (e.g. 3GB) in one go, using a program such as Transmission or Wget, progressively during the downloading, and after it has has finished, the computer always seems ...
-1
votes
1answer
18 views

What are group in unix and how to create them? [on hold]

For file permission of any file in unix I learn that we can set permission on three category. 1) Owner 2) Group 3) Others So I want to know about group.
1
vote
0answers
18 views

How to diagnose CPU performance problems?

Recently I bought a new netbook based on AMD A4-1200 CPU and installed Linux Mint 17 with XFCE. RAM is 4GB So, testing some of my programs, I found very strange behavior. On random intervals, the ...
1
vote
0answers
42 views

Fake IP addresses generator

I have an application running on a server that adds a new iptable rule blocking every IP address trying to connect via SSH with a wrong password. Now, I'd like to perform a stress test where many ...
2
votes
0answers
10 views

Recording loopback doesn't work with alsa

I want to record a sound from speakers, not a microphone in my Linux desktop. I'm using Centos 7. I searched this subject and found this thread but it only partially works. I edited my .asoundrc ...
0
votes
3answers
35 views

sed remove last space only on end of line,combined with awk

I have those line Siouxsie Sioux Siouxsie Sioux ... Sylvia Tobias Sylvia Tobias ... Sydney Urshan Sydney Urshan ... Club Drummer (uncredited) Club Drummer (uncredited) ... ...
0
votes
1answer
32 views

.bash_history keeps truncating

My .bash_history keeps truncating even though I set: export HISTSIZE= export HISTFILESIZE= On my .bash_profile. Im not sure when it happens but it might happen when I logout or shut down my ...
0
votes
0answers
10 views

Opensuse default color theme from 13.1 in 13.2?

Is there a straight way to setup the old "default" color theme (the one from 13.1) in 13.2 ? The "default" color theme has changed. The problem is that i've started a wiki using some ksnap-shots of ...
0
votes
1answer
21 views

If I install MySQL-python using pip, does that means that I can use MySQL server/client?

I have installed MySQL-python using pip. Does that mean Mysql has also been installed in my system? If than, how can i access it through terminal command?
1
vote
0answers
8 views

Alternative to the Linux Mint Cinnamon display settings?

I have Xubuntu on a computer and I like very much the way the display settings manager (xfce4-display-settings) handles external display etc. -- Especially the minimal view is great (looks similar to ...
3
votes
1answer
28 views

Problem with getting interactive input in while read loop

I was doing something like the following minimal example: #! /bin/sh # $1 = file containing list of files to sync # $2 = source dir ; $3 = target dir cat "$1" | while read f do cp -i "$2"/"$f" ...
0
votes
2answers
53 views

How do you set the default behavior of tar?

I have never needed to use any other options for tar other than -cvzpf. Is there some way to set that as the default behavior? While I recognize that it is often impossible to say why someone wrote a ...
0
votes
2answers
40 views

Removing the special character “[” using sed

I have string "[9920380315,POSTPAID,0009,646.26,SELF,APPLICATION]" in that I want to remove first "[" but unable to do this using below command, sed 's/[//g' please help
0
votes
1answer
34 views

How to create a script to run several scripts on different servers

I need to automate the execution of several scripts, and I'm writing a script. The scripts have to run concurrently because they are part of a benchmarking suite. I'm trying to execute 6 different ...
-1
votes
0answers
18 views

Program deleting file of other user - permission denied [on hold]

I have two users. User1 is running a program which tries to delete a file from user2. But my program always return me "permission denied". When I try to delete the file myself as user1 with the rm ...
-1
votes
0answers
11 views

termios: XON/XOFF handshake [migrated]

I'm trying to send data using the XON/XOFF software handshake so the receiver may control the data flow by using control characters. To enable the flow control for sending data I did this: ...
1
vote
2answers
116 views

Can I hook into the cd command?

I'm trying to set something up on a server I run, when ever I cd into a public_html folder 95% of the time there's a few commands I will always run to check certain things. Is there anyway I can hook ...
5
votes
4answers
254 views

List the number of lines in files

How can I list the number of lines in the files in /group/book/four/word, sorted by the number of lines they contain? "ls -l" command lists them down but does not sort them
2
votes
0answers
11 views

Programatically / dynamically adjust SSH session port forwards

I have a workflow where I am trying to do the following: For a given existing SSH session, access the remote machinne and perform a process from which a port is returned (e.g. a remote daemon has ...
0
votes
1answer
11 views

Virtualbox vboxmanage clone does not show up in virtual machine list

I have a virtual machine that I am cloning with the command line interface to virtualbox like so: vboxmanage clonevm origVM --name origClone However, the clone is added to the directory ...
1
vote
1answer
24 views

How can I create Local Loopback on Linux (Red Hat or Debian)?

How can I do the same on Linux (RedHat or Debian)? I need to create local loopback as shown herein: Performing Loopback Testing for Fast Ethernet and Gigabit Ethernet Interfaces. Excerpt ...
0
votes
0answers
12 views

is kernel module preempted [on hold]

I made a kernel module in raspberry which dialog with external sensor to ask for temperature. to talk with the sensor, i should set gpio pins input and output for specified amount of time (in ms). and ...
-1
votes
0answers
13 views

How to install cognitive radio patch in ns2.31? [on hold]

how to create a patch file for cognitive radio network in Ns2
3
votes
1answer
17 views

Trying to read USB Audio Device, but /dev/hidraw0 is unavailable for reading

I'm trying to write a simple driver for my USB Sound Card (just for fun) on Xubuntu 14.04 -- for example, I want to have an opportunity to control volume on my laptop via this device. The problem is ...
0
votes
1answer
40 views

Delete labelled partition non interactively with one command

I know about fdisk and parted, but I was not able to figure out an non interactive way to delete a labelled partition. I imagine something like <command> <action> /dev/disk/by-label/LABEL ...
-1
votes
0answers
16 views

How to install SUMO on Ubuntu 12.04 [on hold]

Please any one help me how to install SUMO 0.22.0 in ubuntu 12.04
0
votes
0answers
9 views

Directly start an application in a new screen/tmux session [duplicate]

Is there a way to start a new screen or tmux session, which directly executes a given command/application then detaches again? In pseudo-code something like tmux new -s ft_session --execute python ...
1
vote
1answer
13 views

How to force FreeBSD to assign default router when acquiring IP in DHCP mode?

How to force FreeBSD to assign default router when acquiring IP in DHCP mode? My machines are FreeBSD 8.2-PRERELEASE or RELEASE The NIC (respectively em0 or re0) is set to get a dynamic IP address. ...

15 30 50 per page