4
votes
2answers
2k views

Multiple root options in Linux command line

My kernel command line looks like this: root=31:0 ro noinitrd console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs I think the first root entry identifies a disk by its major and minor ...
4
votes
1answer
398 views

Prelink warning in output of rpm -Va

I have run the following as root on a RHEL 4 box to get a list of the modified files: rpm -Va The output includes lines such as: prelink: /tmp/#prelink#.60m2Jq: Recorded 2 dependencies, now seeing ...
3
votes
3answers
307 views

bash function to find a directory recursively

How can I write a bash-function that finds a specific parent directory. Here's my setup: /home/user/dev/project1/branch1/deeply/nested/module/structure The app-server used for devs is located at: ...
3
votes
2answers
232 views

Where to find descriptions of Ubuntu's packages (e.g. zlib1g, build-essential)?

I'm learning about Unix and as part of that, I'd like to have some idea of what all these packages I've been told to install are. I've found that Googling the package name doesn't always reveal ...
2
votes
2answers
1k views

How to find every symbolic link on a server?

I need to find every symbolic link on the server. The version is AIX 6.1. man find says -L Follow symbolic links But find -L is not a proper usage. Usage: find [-H | -L] Path-list ...
5
votes
3answers
2k views

On deep-created directories

In Windows, there is a certain limit on the number of characters in a path, which restricts how deep a directory can be created. I was wondering what the case is like in Linux? Do you have some ...
8
votes
4answers
2k views

how can a makefile detect whether a command is available in the local machine?

I began to use org-mode for planning out my tasks in GTD-style system. Putting every org files in a directory of a Dropbox folder, I run emacs to edit / manage these files from three different local ...
8
votes
2answers
3k views

What is bash's meta key?

I tried to use xmodmap to map META_L to the MENU key but it doesn't seem to be accepted by bash as the meta key. So, I am wondering how these components (keyboard, X, xterm, bash) relate to each in ...
4
votes
1answer
1k views

remote X server display not working

I have a local machine A, and a server B. from A, I got: #ps -ef root 3161 3160 0 09:07 tty1 00:03:04 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-dJExDH/database vt1 ...
2
votes
1answer
162 views

How to uninstall java from sco openserver 5.0.6?

I have installed Java (J2SE 1.3.1_21) by following this tutorial: http://www.anyang-window.com.cn/in-the-sco-openserver-506-installed-on-j2se-13106-development-environment/ Now, I want to uninstall ...
24
votes
12answers
7k views

How can I delete a file with no name

I somehow managed to create a file that doesn't seem to have a filename. I found some information regarding how to get more details of the file in the following thread. However, I tried some of the ...
38
votes
6answers
26k views

How to XZ a directory with TAR using maximum compression?

So I need to compress a directory with max compression. How can I do it with xz? I mean I will need tar too because I can't compress a directory with only xz. Is there a oneliner to produce e.g. ...
12
votes
2answers
3k views

Why are there no -dev packages in Arch Linux?

I understand that source based distributions like Gentoo or Slackware do not need *-dev versions of programs. They include the source code as well as header files for compiling everything locally. ...
4
votes
1answer
309 views

Linux 3D graphic libraries

What libraries can be used for 3D graphics on Linux? Are there big differences for 3D graphics programming between Linux and Windows? I found about DirectX and OpenGl by searching, but I'm not sure ...
7
votes
2answers
209 views

Is it possible to make scp fail when you do a local copy?

Is it possible to make scp fail when you do a local copy? I find it annoying to accidently create files with names like 192.168.11.5 when I meant to type 192.168.11.5: and hence copying the file to ...
4
votes
2answers
369 views

zsh autocomplete directory

I'm new to zsh and one thing that I do quite often is execute shell scripts that are in a directory of mine called Scripts. I'm not always inside of the Scripts directory, however... I may be in ...
3
votes
3answers
215 views

Permissions for a submission script

I'm a TA for an introductory Python programming class (all work is done from the terminal), and I'm writing a project submission script. Ideally I want a directory setup like this: submissions/ ...
4
votes
2answers
566 views

Sharing private keys across machines

Say I have local access to two machines A and B and remote access to machine C. If I generate a public-private pair of keys for accessing machine C from A, can I share the private key with machine B ...
3
votes
3answers
2k views

How do I run a script n times at same time and how do I simulate a semaphore?

I have a text file, inside of this file is a number, and I have a script.sh in ksh. The script reads the file and gets the number, then increases the number by 1 and overwrites the new number in the ...
3
votes
1answer
575 views

ssh “-f” don't give back hand in bash when listening to stdout/stderr

Please look at these: ## Does NOT return to the shell, but Ctrl-C can exit ssh -S none -fNR 13018:localhost:22 example.com | cat ## Returns to the shell (no "-S none") ssh -fNR ...
2
votes
2answers
327 views

Is using cookies from a web-browser a sane rationale for desktop application development?

I am looking at making an application that would make OpenID authentication with desktop clients easy. The rationale is to steal the cookies from the web-browser, so as to avoid having to hard-code ...
31
votes
7answers
42k views

What DNS servers am I using?

How can I check which DNS server am I using (in Linux)? I am using network manager and a wired connection to my university's LAN. (I am trying to find out why my domain doesn't get resolved)
2
votes
3answers
5k views

How to delete the oldest directory in a given directory? [duplicate]

Possible Duplicate: Shell script for moving oldest files? I have a backup directory that stores x other directories that require backuping. I need something that will run before another ...
3
votes
1answer
911 views

7zip context menu appears twice

7zips context menu appears twice to me when I right-click to a file.. Same thing happens in both dolphin and krusader. It looks like this: I've found 7zips readme.txt in ...
4
votes
2answers
3k views

How to start plasma-desktop from SSH-console on desktop session?

I killed KDE's plasma-desktop on a openSUSE 11.2 machine, because it was eating too much CPU. How can I restart it via SSH or another tty session? On the affected computer there is only shown a ...
6
votes
1answer
7k views

Bash: Merge foldername from variable with filename

First I write a configfile with all my parameters like this path="/home/test/" I name it test.conf. Then I write a shell script with this content, name it test, and make it executable with chmod ...
5
votes
2answers
456 views

Can I trace a dash script without modifying its source code?

I would like to trace a shell script for debugging purposes without having to modify its source code (e.g. change the shebang or insert a set -x at the beginning). It is a dpkg postinst script, so not ...
6
votes
3answers
411 views

Is `Tru64 UNIX` open source?

Is Tru64 UNIX an open source/free or commercial system? Does it work on 32-bit platform? and what are its features in compare with *BSD & Linux system?
3
votes
2answers
848 views

sed inline editing fails for multiple sed statements

I want to append #SB# at the beginning of every line where it matches a given string incron.sh sed -i -e'/test1/s/^/#SB#/g' file1 sed -i -e'/test2/s/^/#SB#/g' file1 sed -i -e'/test4/s/^/#SB#/g' ...
5
votes
3answers
2k views

killing processes automatically

I need to kill all processs in a certain shell excluding certain processes. Like sh which is my shell. And the comand. This is what currently in my shell right now. rcihp146 :/home/msingh2> ps ...
2
votes
5answers
550 views

Bash script that can test for a particular lib

I'm writing a bash script that needs to test if certain libs are installed on a VPS, and if they're not, the script will install them. My problem is being able to have the script determine if they ...
7
votes
3answers
5k views

How do I tell what version of Gentoo & Linux is running?

Is there a way to tell from Bash what distro version # I'm running and also what Kernel version is included?
9
votes
1answer
4k views

Open source duplicate image finder for Linux?

Is there a free and open source duplicate image finder for Linux based systems? Finding exact duplicates (based on content, not file name) is sufficient for me, but the ability to find similar images ...
4
votes
2answers
67 views

changing the order of items in a list

I have a file with plain text. This file contains a list like this: @"Joe", @"211", @"Bob Nelson", @"132", @"Jack Sierra", @"3422", @"Walt Robert", @"14", The list goes on and on with thousands of ...
5
votes
4answers
7k views

Apt-get autocompletion

I am currently running 64-bit Debian Wheezy. I am having some trouble with auto completion for apt-get. I have bash-completion installed. If I am logged in as root in a shell, I can use auto ...
19
votes
3answers
5k views

Why does the 'bin' user need a login shell?

During an audit of /var/log/auth.log on one of my public webservers, I found this: Jan 10 03:38:11 Bucksnort sshd[3571]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 ...
3
votes
2answers
1k views

How to understand the filesystem concepts used by encfs?

I do not hold a deep understanding of computer science concepts but would like to learn more about how the utility encfs works. I have a few question regarding the concept of filesystem in regards to ...
5
votes
1answer
362 views

SSH HTTP Tunnelling

I am trying to set up an SSH account on my server for someone, and I only want to give them access to tunneling internet traffic. I set their user's "shell" to /bin/true, so now when they SSH (and ...
5
votes
2answers
7k views

changing the names of network interfaces, debian wheezy

I'm trying to set a name for an interface, "ethLan" instead of eth0. Doing so also ensures that the if's name will remain consistent at every reboot and kernel. I did find some articles in the ...
3
votes
1answer
144 views

lstat64 fails on existing directory

After trying for a while to debug a failing move_uploaded_file call, I tried strace -s 8192 -o strace.log -f /etc/init.d/apache22 restart This produced, among a lot more output, the following ...
3
votes
1answer
342 views

How to parse the file from end in awk

#!/bin/sh if [ $# -ne 8 ]; then echo "Usage: sh `basename $0` YYYYMMDD hour min masterid account destination filename forward|backward"; exit 1; fi day=${1} hour=${2} min=${3} ...
2
votes
2answers
5k views

list the difference and overlap between two plain data set [duplicate]

Possible Duplicate: Linux tools to treat files as sets and perform set operations on them I have two data sets, A and B. The format for each data set is one number per line. For instance, ...
4
votes
3answers
1k views

Why the unix bin directory named in that way?

I thought the bin directory is the place for binary files. If so, what about script files? Should they be placed somewhere else? What's the history of bin directory and where should I put script ...
2
votes
3answers
6k views

Batch renaming files with pattern

I have some files named like these: 63018933.mp4?token=1325697436_b0c3e70c6e339380b4a484c576a8c287 63808488.mp4?token=1325697401_4ae5f7a68d93873c8881b303e7655e14 How do I rename all them to, for ...
7
votes
2answers
3k views

List elements with spaces in zsh

I've been studying zsh scripting for all of 2 hours at this point and I've hit a wall. I want to go through a list of files that may have spaces in them. I'm open to completely different approaches ...
2
votes
0answers
753 views

Changing background color of gedit's whitespace highlighting

I've used NEdit since about 2003. NEdit's whitespace highlighting is subtle and I prefer it to the dot other editors put in whitespace. NEdit's background normally is light grey and whitespace is ...
6
votes
6answers
17k views

iptables to block https websites

I wish to block a few websites that also run upon https, like facebook, twitter, and gmail, in my organization. Squid is not supposed to be used here as per the orders from higher management. We can ...
3
votes
0answers
607 views

Mint Linux Wireless Issues

as I understand it LMDE is built based upon Ubuntu; and I did not receive much help from the official Linux Mint forum, so I've decided to post here. My problem started yesterday, when I installed ...
5
votes
3answers
11k views

Count distinct values of a field in a file

I have a file contains around million number of lines. In the lines I have a field called transactionid, which has repeatitive values. What I need to do is to count them distinctly. No matter of how ...
0
votes
1answer
1k views

G722 in gstreamer is not available or its need to be activated? How do i do that?

Gstreamer how to use G.722 enc and dec? Is this not available or missing in there implementation? $ gst-inspect | grep ffmpeg ffmpeg: ffaudioresample: FFMPEG Audio resampling element ffmpeg: ...

15 30 50 per page