6
votes
2answers
192 views

Why are there so few “running” processes?

On all of BSD/Linux/MacOS and Solaris, I made an observation - no matter how busy the system is, top always reports very few (usually 1-2) running processes. According to my limited understanding, a ...
1
vote
1answer
136 views

Awesome floats some programs by default

I have Kubuntu with KDE and replaced KWin with Awesome WM. It works well, except that it floats Konsole and Dolphin consistently. While using KWin, I set up some KWin rules to fix the windows size, ...
2
votes
4answers
528 views

Exclude characters for SCP-filepattern

Is there a way to build an expression for scp with which I can manage to copy the file file-name-version-1.2.1.jar without copying the files file-name-version-1.2.1-sources.jar ...
2
votes
1answer
316 views

xinetd cannot launch lighttpd

I want to launch lighttpd when someone tries to connect to port 80. I started with a simple test script to see if anything was working: /etc/xinetd.d/www service www { disable = no ...
3
votes
1answer
448 views

How to use `expect` with `zipcloak` II?

This question is a followup on this question, as I figured out the solution I presented in the previous question does not work anymore. It worked sometime, but now expect does not work as expected. ...
0
votes
0answers
194 views

extending wifi scan list to 2.3GHz and 10MHz width

How to extend wifi frequency scan list to be able to connect 2.3GHz or 2.5GHz access points? And how to set channel width to 10MHz? Arch Linux. Broadcom and Atheros drivers.
4
votes
1answer
243 views

Preferred way to install bash functions?

I've written a bash function called up which I share via github. Now I'm struggling with installation instructions. I know of two options to 'install' bash functions: put them into .bashrc put them ...
1
vote
1answer
274 views

How to resolve a hostname via nsswitch?

I want to test in a script whether a hostname resolves to something other than 127.0.0.1 as a pre-flight test for an install script. The tools I know (dig, nslookup) specifically query DNS. In my ...
1
vote
0answers
26 views

Use an alias with watch command [duplicate]

The post repeat command every x seconds shows that watch is the utility that is useful for the invoking a command at fixed interval repeatedly. Now, I have very long commands, and have used aliases ...
5
votes
2answers
398 views

Can I make a tmux pane “sticky”?

Is it possible to make one or more tmux panes "sticky"? I.e. these panes will appear in all windows which are currently available in my tmux session?
7
votes
1answer
2k views

less follow mode - clear screen

I use less follow mode (Shift-F) to follow a log as it is updated. Sometimes it would be useful to do some actions on my system, and then only see log output related to that action. Basically I would ...
8
votes
2answers
5k views

What tool can I use to sniff HTTP/HTTPS traffic?

I'm looking for a command line tool that can intercept HTTP/HTTPS requests, extract information such as: (content, destination, etc.), perform various analysis tasks, and finally determine if the ...
0
votes
2answers
132 views

Concatenate a folder's Java files, with a header for each file

I have an obligation to provide a document which just contains every source code file, with the file's name before each file. Example: ============================= src/com/example/Factory.java ...
0
votes
2answers
1k views

cp all files and subdirectories in a directory ksh

How can I do a cp to copy all files including all sub-directories in the current directory. I looked at the man page, but I can't figure out how to do it.
1
vote
3answers
14k views

What is the difference between binary file and .exe file? [closed]

Can anyone distinguish the difference between binary file and .exe file?
1
vote
1answer
308 views

Internet bandwidth mysteriously drops under Linux, but is fine under Windows

I can't seem to download files from the internet on my laptop with Mint/Ubuntu, due to strange bandwidth fluctuations. I'm able to browse the web with Firefox with no problems, apt-get update and ...
3
votes
1answer
916 views

Ubuntu / Mint brightness 0 by default on login

Every time I boot up Ubuntu or Mint, after choosing an OS from GRUB menu, before logging in, screen brightness is set to 0. What is the reason behind that? I always end up manually turning on the ...
0
votes
5answers
306 views

How to logout from su-ed root at certain time

Suppose, the user does su, switching to root $ su Password: bash-4.2# crontab -l How can I logout all such users from root at a certain time? What I tried I know, that using this command: ...
4
votes
1answer
2k views

How to enable user_xattr in Mint Cinnamon?

I just installed Netflix Desktop on my Cinnamon Mint, but I can't start it. When I run the program, I get the following message: It appears that you do not have extended file system attributes ...
-1
votes
0answers
28 views

Can't install new applications [duplicate]

E: Could not get lock `var/lib/dpkg/lock` - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (`/var/lib/dpkg/`) Is another process using it?
7
votes
2answers
16k views

grep: regex only for match anything between parenthesis

How do I match word only between parenthesis Input : this is (test.com) Desire Output : test.com
0
votes
2answers
145 views

Building from source on linux - mess in installed packages [duplicate]

Everytime when I want to build application from source on linux, I have to install dependencies libraries in my operating system (ubuntu). Typical scenario: Start ./configure Got error about missing ...
2
votes
1answer
305 views

Whonix no DHCP offer received

Hi I'm on the last step of setting up Whonix physical isolation and can't get the gateway to see the workstation. I'm confused because on the page linked below where it says 'Host Network' and 'NAT ...
3
votes
1answer
199 views

Find directories with a certain name

How can I loop through each directory recursively and whenever it finds a folder called VIDEO_TS, let Genisoimage convert that folder's content to an dvd-video iso image, the name of the iso would be ...
4
votes
1answer
156 views

How to change the backgrounds in isolinux

I've been messing with this problem for a while now, and it seems like there isn't much documentation, or people who have asked about this before. I've been trying to change the back640x480.jpg, ...
2
votes
1answer
460 views

gawk with gawkextlib

In my system (Slackware64-14.1) gawk is installed in version 4.1.0. I'd like to install gawkextlib to have access to some of its features, namely xml. From the README file of gawkextlib-0.4.9: ...
0
votes
2answers
54 views

Fedora 17 Performance Issues [closed]

I have a Dell Latitude E4310. I have Windows 7 and Fedora installed on it. I rarely use windows and I have been using fedora for a good 9 months now. Recently the performance on my machine degraded ...
2
votes
3answers
143 views

Change value of a strings representing number

I have the following expression : a="2013" How can I change the value of a to "2012".
7
votes
3answers
509 views

What's the difference between && and ; when forking sleep to background?

I have just asked a question about forking a process to sleep in the backgroud. The notation I came up with myself looks like this: sleep 10 && echo "hello world" & This answer to a ...
3
votes
3answers
319 views

Why is my condition always false?

I tried to write a script which creates a user. First it needs to check if: root is running if user maybe already exists I Also tried to set the password equal to the username which was typed ...
14
votes
3answers
16k views

How to run a command in the background with a delay?

Can somebody show me how to make a program to do this action: after 5 minutes echo "80" > /sys/class/leds/blue/brightness I want this program run in the background (like rngd service) I can't do ...
7
votes
3answers
5k views

Why do top and ps show different PIDs for the same processes?

When I run top -H, I see that my multiple mysql threads all have the same PID. However, in ps -eLf I see each one has a different PID: ps -eLf UID PID PPID LWP C NLWP STIME TTY ...
0
votes
1answer
511 views

How to debug a device that changes from /dev/ttyUSB0 to /dev/ttyUSB1 at will?

I have a device plugged to a CentOS server that changes randomly from /dev/ttyUSB0 to /dev/ttyUSB1 and vice versa. The device I'm trying to connect is this one. How can I debug this?
2
votes
1answer
545 views

Where in the linux kernel sources can I find a list of the different keyboard scancodes?

I was looking for a list of keyboard scancodes in the linux kernel sources, but I did not find anything. Does someone know where to find these? Especially the USB scancodes would be interesting.
7
votes
2answers
1k views

How can I allow a user to prioritize a process to negative niceness?

I want a user to run a specific process on the system with a negative nice value. I can't simply fork the process to background as this specific program is a minecraft server and I rely on the command ...
2
votes
1answer
1k views

Keyboard layout panel applet in MATE 1.6

I'm on a system with MATE 1.6.1. I didn't find the Keyboard Indicator Applet in Add to Panel list. How can I add this applet to a panel?
3
votes
4answers
805 views

How do you find what keys the “erase” and “line-kill” characters are in Ubuntu?

I'm new to Unix and have bought today a copy of "The Unix Programming Environment". I'm trying out the stuff from the book. But some of them are not working as expected like : To kill a line and ...
6
votes
2answers
4k views

How to regenerate /etc/init.d/.depend.(boot|start|stop) on Debian?

Suppose one deleted the following files. /etc/init.d/.depend.boot /etc/init.d/.depend.start /etc/init.d/.depend.stop How to regenerate them?
1
vote
1answer
45 views

Accessing other folder

I'm having difficulty with groups and permissions. I have user A part of group A that manages a folder F. A second user B part of group B must access folder F and its content. I added user B to ...
1
vote
1answer
1k views

Grep pattern in ksh [duplicate]

a small question regarding grep. I'm doing : find . -type d And I have three directories : ./backup-2013-11-27 ./backup-2013-11-26 ./backup-2013-11-28 If I only want to retrieve the one from ...
0
votes
1answer
59 views

Test what cd has done ksh

I'm facing a small issue here. I'm doing : cd $(find . -type d | grep "${4:0:4}.*${4:4:2}.*${4:6:2}") $4 is a data entered from the user. However, if the user doesn't respect the format to enter, ...
4
votes
2answers
705 views

How to interpret the “saddr” field of an audit log?

I'm trying to log the parameter of connect, so I added one rule with auditctl. Now in audit.log I get lines like this: type=SOCKADDR msg=audit(1385638181.866:89758729): saddr=hex string So how ...
0
votes
3answers
2k views

Identify if files or directories are hidden

I am trying to write a bash script that prints out all files (including hidden) in a directory recursively and records the number of files, hidden files, hidden directories and directories. This is ...
5
votes
2answers
2k views

Show tail of files in a directory?

I have a directory that is too huge to browse by any means. Grepping returns argument lists too long, WINSCP crashes when trying to open the directory. Is there a way I can view just the last 200 ...
5
votes
1answer
7k views

service to start on boot doesn't work with update-rc.d comand

I have installed redis server on my ubuntu based server, so I can start/stop/restart redis server, the redis_server.sh is already in the /etc/init.d. Now I want to make redis start on boot, I ...
1
vote
3answers
270 views

Wrong number of logged in users using “w”

There was a temporary network glitch and all user terminal ssh sessions were broken. Upon logging in to the CentOS server again and running the "w" command lists a higher number of users logged in ...
1
vote
2answers
1k views

How to set root permission for all users?

I'm a beginner and I don't have any idea about how to give root permissions to all users, I've tried using gpasswd -a sqeeph root but the terminal still displays sqeeph@root
3
votes
0answers
255 views

What is the difference between the output of TOP command and Oprofile?

In the top command one of the processes is always showing a CPU usage of 4 to 5%. But in oprofile the CPU usage is 0.004%. I do not understand this. And I also noticed that even when a process is in ...
87
votes
3answers
5k views

Does tail read the whole file?

If I want to tail a 25 GB textfile, does the tail command read the whole file? Since a file might be scattered on a disk I imagine it has to, but I do not understand such internals well.
0
votes
2answers
343 views

Calculating CPU time of process in RHEL 5.3

For a process management,I would need to remove a process that exceeds a certain amount of CPU time, for example 1 hour.In PS command ,it has TIME parameter shows the total CPU time of a process .So ...

15 30 50 per page