Tagged Questions

Excerpt from the Wikipedia page: Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees. It has also greatly influenced the development of a ...

learn more… | top users | synonyms

1
vote
2answers
41 views

How to scroll backwards when displaying file using “more” command?

Return scrolls forward. How do I scroll backward one line at a time?
1
vote
1answer
15 views

decode legacy crypt-ed file with mcrypt

I have an old file which I encrypted with old UNIX-style crypt on Solaris. (Yes, I know it's weak, but it was appropriate in this case.) I now want to decrypt it but I am running Ubuntu which doesn't ...
0
votes
0answers
8 views

monitoring the number of mv/rename per second on linux redhat

How can you monitor the number of mv/rename per second inside a specific directory/file system, for one particular user, on linux (redhat) ?
2
votes
1answer
18 views

syntax for linux/unix command “column”

Manpages for the command "column" show: column [-tx] [-c columns] [-s sep] [file ...] -s Specify a set of characters to be used to delimit columns for the -t option. I could not ...
1
vote
1answer
21 views

solaris + egrep command syntax not work

my target is to match snmpmanager string from /etc/hosts file in Solaris machine I don’t get any match output from the following command (but snmpmanager already defined in host file) why?? egrep ...
0
votes
2answers
31 views

Send a file from Windows to Unix as a nightly schedule

Let's say I have a common directory on a Windows server such as: \\servername\location\common. During the day, any user can come and add/remove files to that Windows directory. How would I setup a ...
0
votes
1answer
14 views

Linux install password lost and found

I just installed Linux on a virtual machine. During the installation, I setup account and password but later when I try to log in (after installation completes), I forget the password thinking I am ...
0
votes
2answers
33 views

how do i transfer files from my pc to a unix account in school?

I believe Window SCP can do it, but I want to know if there is a command which I can use to transfer a file from my laptop to my unix account in school. I will be using putty.
0
votes
1answer
16 views

find command giving different outputs with/without -print

find src/ -name "*.cc" -o -name "*.cpp" -print find src/ -name "*.cc" -o -name "*.cpp" The intended behavior is to find all C++ files in a directory and all its subdirectories. As I understood it, ...
0
votes
1answer
34 views

Unable to edit files in _www group on OS X

I am using my MacBook as a local dev environment. In order to make the files publishable I had to give my web folder user and group of _www:_www using chown. I'm using another account to log into my ...
0
votes
0answers
28 views

Get number of processor ticks on Mac? [migrated]

How would I find: The number of nice ticks The number of user ticks The number of idle ticks The number of system ticks I am on Mac OS X Snowleopard with an 2.4Ghz Intel Core 2 Duo processor. Is ...
0
votes
2answers
52 views

Is it possible to add an exception with a “ls -l *”

Is it possible to do for exemple: ls -l * which print the content of all a directory. And add an exception, for exemple, test.cpp In order to print all files except the test.cpp.
0
votes
1answer
38 views

How to launch Windows EXE from within Linux\UNIX host?

I have a Windows Application that now I got a request to be triggered from within Linux machine. This app is expected to run independently on Windows itself, regardless of sharing info with Linux or ...
0
votes
4answers
60 views

Does ln -s require you to be in a certain directory?

I want to create a simple symlink to a file. It works perfectly if I run the command from inside the directory where I want the symlink to be created: /path/to/link $ ln -s /path/to/file . But if ...
2
votes
1answer
64 views

What to do if kill -9 doesn't work?

I've got a pesky process (in this case, a stranded process that was supposed to be running in iPhone Simulator (now long quit). 97442 ?? 0:00.00 (MyProcess) I've tried everything I can ...
1
vote
2answers
48 views

Bash Script: Invalid argument

Why can't I use echo $1 > /sys/class/backlight/acpi_video0/brightness in a simple bash script? It gives me the error: echo: write error: Invalid argument.
1
vote
3answers
38 views

Grep fail to ouptut to a pipe?

I'm having problems with grep filtering of make output. In particular, make target 2>&1 | grep -E --color=never "^make.*" works as expected, but the following will print no output to the ...
1
vote
1answer
30 views

Using a Linux/Unix terminal to copy many files to a new location

I'm trying to use the a Linux terminal to copy many files to a new location. I tired the command: sudo locate -i *file_I_want* | xargs cp $1 /place_I_want_everything_copied_to/ Which, gives an ...
0
votes
1answer
30 views

How can you move (or copy) all files of a certain type to a directory in Unix?

I'm not very familiar with all the tricks of grep/find/awk/xargs quite yet, so be patient with me =] I have a particular file type say *.xxx, in random places throughout a certain directory. How can ...
0
votes
2answers
52 views

How I can download this directory?

Is it possible to download this entire directory with wget? How I can do that? This is the directory with the files that I want to download: ...
0
votes
0answers
23 views

Using rsync to synchronise folders without overwriting files of same name

I would like to synchronise the contents of two directories. Without overwriting but to create a copy if two files have the same name, but different sizes Without duplicating if two files have the ...
1
vote
3answers
50 views

Sudo segmentation fault in Terminal [closed]

Possible Duplicate: Cannot do sudo: “/etc/sudoers is mode 0740, should be 0440” sudo: /etc/sudoers is mode 0640, should be 0440 Segmentation fault Any time I am trying to do ...
0
votes
1answer
42 views

How do I uninstall ctags on MacOSX?

I was messing around with vim, and every now and again my CPU goes to 100% running ctags. It's getting annoying, I can't figure out how to uninstall it. I've tried 'sudo port uninstall ctags' but that ...
0
votes
3answers
33 views

Crontab deleted?

Instead of typing "crontab -e" I accidentally typed "crontab" and was stuck in the middle of a process so I aborted the process. Now when I go to crontab -e it's entirely blank. This isn't good at ...
0
votes
2answers
43 views

How to find and stop a process on a Mac

How can I find the process id and stop the process that is running on port 8080 on a Mac? On Ubuntu this works: ps -aux and I can find the process and run: kill -9 pid ps -aux didn't seem to ...
0
votes
1answer
15 views

I can not find specific cron running at *:21 and *:56 on Debian

I am frustrated. I have two mystic crons running on our server, that I can not find by doing crontab -l. The good thing is these crons are sending mails. That is how I know those are running at :21m ...
0
votes
1answer
51 views

Get the most common appearing lines from file in Linux

I have a text file that has various words per line. How can I find the 12 most frequent appearing lines in the file and display them? I am not very good with scripting commands. If I could get the ...
2
votes
3answers
77 views

Login with SSH user that has no password set

I have a user without a password set (i.e. passwd -d). I would not like to use public keys on this setup. Is there a way to SSH login to such a user?
0
votes
0answers
17 views

L2TP over IPSec on Debian [migrated]

I've configured the IPSec and XL2TPd daemons properly, both boot fine. At the moment, the issue I'm having is I get this message. ipsec_setup: multiple ip addresses, using 127.0.0.2 on venet0 ...
2
votes
0answers
49 views

Getting rid of a GPT signature without touching MBR [closed]

Possible Duplicate: GParted errors on MBR Disk, Claims it's GPT. (It's mistaken, but why?) I have a disk that seems to contain both an MBR and a GPT. When trying to access the ...
1
vote
1answer
43 views

What does directory permission 02777 do?

Found the following PHP code today: mkdir($directory, 02777); chmod($directory, 02777); I understand the PHP, but not first part of those numbers. The 777 part is clear, and if I have understood ...
2
votes
0answers
55 views

Child processes remain after quitting screen

I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed. $ screen $ tail -f (or some long running process inside screen) Then, I kill the current screen ...
2
votes
5answers
159 views

Best practices to alias the rm command and make it safer

Some time ago I erroneously deleted my home folder because I ran a rm -rf * on the wrong terminal, whose working directory was the home folder! I wish I had an alias for the rm command, but it was ...
3
votes
3answers
84 views

Does rm -f follow symbolic links?

I have a directory like this: $ ls -l total 899166 drwxr-xr-x 12 me scicomp 324 Jan 24 13:47 data -rw-r--r-- 1 me scicomp 84188 Jan 24 13:47 lod-thin-1.000000-0.010000-0.030000.rda ...
1
vote
1answer
16 views

How do I move a linked file on Unix?

I have a bunch of files in one directory and links to each one of those files in another directory. So ls -l looks something like this: lrwxrwxrwx 1 rembol rembol 89 Jan 25 10:00 copyright.txt ...
2
votes
2answers
110 views

Ethernet port not showing up in ifconfig

I asked this question on ubuntuforums.org, but haven't gotten any responses. I am new to Ubuntu, and am having trouble getting my onboard ethernet port working on a fresh install of Ubuntu 10.04 ...
1
vote
1answer
23 views

Create floppy disk image with FreeBSD

So I don't have a usb floppy drive for my laptop, but oddly enough, I find myself wishing I did now. I do have an old machine with a floppy drive running FreeBSD 8.2, so I thought I might just use it ...
1
vote
1answer
48 views

How to create snapshots of your server for backup in Cent OS 5

I'm making the move from VPS to Dedicate server. Unfortunately, most dedicated servers do not provide server backups like managed VPS's do and I really like the piece of mind of having a backup of all ...
3
votes
7answers
175 views

unix - split a huge .gz file by line

I'm sure someone has had the below need, what is a quick way of splitting a huge .gz file by line? The underlying text file has 120million rows. I don't have enough disk space to gunzip the entire ...
1
vote
1answer
52 views

Sorting a checksums file by file name

I'm trying to sort the output of the md5sum program by file name, numerically (that is, file names all match log-\d+\.txt). I tried sort -g "-t " -k 2 CHECKSUMS but it sorts by checksum. Using ...
0
votes
0answers
12 views

Using psftp to copy files from unix to windows

I am currently trying to copy a file from a unix server to my local machine. I know you have to use the "get" command but after executing the command, the file is not showing up in my local directory. ...
-2
votes
0answers
35 views

What music generating software can be run server-side for live streaming? [closed]

My experiments with generative music require live feedback from listeners. What would be the possible programming language or a software tool, preferably an Open Source, able to run on a *nix server, ...
3
votes
4answers
79 views

How to append a string to a file name in Bash Shell?

So I am supposed to find all the files in the given directory with surffix of .C or cc, and change their name to .C.blah or .cc.blah Is there a command to do that? Or should I implement this with ...
1
vote
1answer
55 views

FreeBSD ee editor - can't type numbers

So I am using ee editor in FreeBSD 8.1 box. I cannot type numbers though. I open a file with: ee file I start writing letters which works fine but when I press a number on my keyboard (1, 2, 3 etc) ...
2
votes
2answers
43 views

Unable to “git stash pop” due to conflict

I have a local git repository and had several modified files. Then I needed to quickly produce a fix for something so I stashed my changes (git stash) edited file (vi file) committed (git commit) ...
1
vote
3answers
37 views

Atomic application of unix patch

I have prepared a "patch" to my customer who will need to manually apply it to their code. If patch is applied partially due to conflicts then the whole procedure needs to be immediately reversed. I ...
0
votes
2answers
66 views

egrep: CPU and memory usage

My Linux machine has 16 processors and free memory of 70 GB but when I run an egrep command, the command is using (checked through the top command) 100% of CPU and 0.5 of memory: 22391 aime 25 ...
-2
votes
2answers
91 views

Shell script error using command find

My script is supposed to: recursively look for files and directories whose names contain given strings, using find, starting in the current directory. If no arguments are given the message Missing ...
1
vote
1answer
21 views

Being 'nice' with I/O: limiting a processes I/O resources in *nix

I'm working on a big shared Ubuntu server and am annoying my colleagues. One of my processes is making a lot of inserts into a MySQL database and it's bogging the whole server down. MySQL is not ...
0
votes
2answers
112 views

Unix - Directory not empty. Error -126: remote rmdir failed

I have the following directories on the root of my server htdocs [site contents] mike-eng stage old2 stats I am trying to delete the "mike-eng" directory here. Permissions on "mike-eng" and ...

1 2 3 4 5 28