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 ...
1
vote
4answers
14 views
Linux Both Case Sensitive AND Case Insensitive and Always Inconvenient?
This is really starting to get to me. I'm using Ubuntu 10 and I'm quickly finding out that it's case sensitive when it's inconvenient for it to be so (like when autocompleting file paths with tab in ...
1
vote
1answer
27 views
Let tmux set urxvt window title according to session-name
Everyday I launch a bunch of urxvtc -e tmux.
I am trying to find a way to override urxvt X window title ("tmux") with the current tmux session name set via :rename-session session_name.
Does any ...
0
votes
3answers
15 views
remove files from dir using terminal
I need to delete all files, except one( its name is defined), from given( or current ) directory. How can I do this using unix terminal( MacOs ). Can I do this with one single command.
Thanks!
2
votes
1answer
14 views
Can tar be forced to exit on the first error?
By default, for many kinds of errors tar prints a message to stderr and then continues on its way -- the errors it calls "recoverable" errors, typically errors that relate to a single file or archive ...
0
votes
1answer
11 views
Precedent for terminal key bindings for Windows or Mac Cmd key
Unix terminals send ASCII codes below 32 for Ctrl + another key, and have at least two ways of sending "meta" (viz. either prefixing code 27 or setting the high bit of an ASCII character). Is there a ...
0
votes
1answer
16 views
On Mac Terminal, how can I know where a given script resides
For example, on my machine, "git" is at "/usr/local/git/bin/git" (I found this by fiddling around). Is there a command I can run on my terminal like "show-path git" which would return the real path? I ...
3
votes
2answers
37 views
What is the reason for rmdir(1) and rm(1) to co-exist?
I use BSD and Linux every day, I have never had a circumstance which I must use rmdir(1) rather than rm(1). What's the purpose of rmdir's existence?
Thank you!
1
vote
2answers
40 views
locate similarly named files
I'm running OS X 10.7.3. I would like to locate all the files that have common strings in their filenames.
I have a folder that contains several files whose filenames are the same except for the ...
0
votes
1answer
25 views
Mount -a on reboot after modifying /etc/fstab
I added the third line to /etc/fstab.
proc /proc proc defaults 0 0
none /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs ...
0
votes
2answers
33 views
How to delete everything in folder?
I've tried executing sudo rm * and it does not remove everything. (I probably have lots of objects in there which I don't need.)
I'm not asking whether it is OK to remove everything in /tmp, I'm ...
-1
votes
1answer
37 views
SCP send Lost connection
scp file.txt user1@10.57.111.44:/W/
Each time when I issue this SCP command, I got "Connection to 10.57.111.44 closed by remote host.
lost connection". Why is this happening?? ...
2
votes
2answers
37 views
How can I avoid descending certain directories with 'find'?
Currently I have this find command which avoids descending particular directories:
find . \! \( -name ".hg" -prune \) \! \( -name "localhost" -prune \) \! \( -name "logs" -prune \) -type f
The ...
2
votes
2answers
44 views
Split a file on Windows and join back together on UNIX?
I have a process that involves transferring files from the Windows LAN to an AIX UNIX server using FTP through a VPN connection.
The problem is that some of the files are very large -- up to 4gb. The ...
0
votes
1answer
32 views
Used tar with wrong order of arguments and overwrote original file. Any way to recover?
Pretty noob move but used tar with the source and destination file arguments swapped resulting in a complete mess (the source file has been overwritten with another file of same name with size 4kb).
...
1
vote
0answers
27 views
Unix (Debian) autocomplete paths thru symlinks
By default, directory symlinks on unix systems are treated as files as far as the autocomplete feature goes. For example, having a directory symlink at /srv/link/, typing /srv/liTAB does only complete ...
0
votes
0answers
37 views
tcpdump loses connection
I'm on Ubuntu – but it's the same on Debian. I'm using tcpdump in order to track the connection of computers on my private network. At some point, the internet connection of the computers launching ...
1
vote
1answer
11 views
TOP command on SUSE Linux Enterprise Server to find a resource intensive process?
I have a box running SLES but I can't run TOP, apparently it's not installed on the box, is there a way for me to find a resource intensive process that's slowing the box down?
Any help will be much ...
2
votes
2answers
74 views
I get a permission denied (public key) when I try to scp in ssh
I can login to the remote server via ssh and navigate through it's file system, but as soon as I try to scp a file from the server to my laptop I get an error message.
Example:
user@server:/file$ ...
0
votes
1answer
35 views
using history command with ssh and getting output with correct time stamps [closed]
Possible Duplicate:
using history command with ssh and getting output with time stamps
Basically i want to get a record of all commands executed on my ssh server, with their correct ...
0
votes
0answers
41 views
User has write access but getting “permission denied” error
A user has been added to a group and the group has been given ownership on an directory.
Now the user is not able to write the files in to the directory using WinSCP, but I have added another user ...
1
vote
0answers
53 views
How do i acknowledge gnome 3 notifications using the keyboard?
The title says it. I have been looking for a mouseless method to acknowledge the spiffy gnome 3 notifications.
0
votes
5answers
186 views
Linux file contains “@^@^@^@”, how to restore?
I just finished writing a large c code, but when I save and open again the file contains strange characters: ...
3
votes
2answers
116 views
Run command as root but create files as another user?
Is there a way to run a command as root (using sudo perhaps) but have the files created by that command be owned by someone else?
Some context: I have a web server that I run as root in order to have ...
-2
votes
2answers
53 views
Understanding .bashrc and .bash_profile [closed]
Possible Duplicate:
When should I put configurations into .bashrc vs into. .bash_profile?
I am a n00b when it comes to working in Linux env and would like to know the purpose of .bashrc and ...
-1
votes
2answers
68 views
Unix vs Unix-like vs GNU vs Linux vs GNU/Linux [closed]
May I know followings in summary:
What's the philosophy and meaning of each?
How are these related together? Is one of them the base and other have been created upon of another? Or is one of them ...
0
votes
1answer
20 views
using ulimit for current shell
I want to increase the hard limit of maxfiles using ulimit -Hn for the current bash shell. The problem is I can not do it without using sudo. But, when I do sudo ulimit -Hn unlimited, it does not ...
0
votes
0answers
19 views
Terminal highlighting and auto complete
Do you know some plugin for highlighting and autocomplete in postgreSQL terminal?
0
votes
2answers
45 views
What do I do with a private key and a .ppk file to log into a remote client?
I am new to SSH and I have to log into a remote client. The owner of that client sent me a private key in a text file and a .ppk file. How do I use these to login?
I'm running OS X Lion.
0
votes
1answer
43 views
Remove middle folder?
I have foo/bar/myfiles and I want foo/myfiles.
I was trying to git clone a repo into foo, but it made the name of the repo as a folder and put the files in there. I'm thinking of just cloning into ...
3
votes
3answers
74 views
What's the easiest way in *nix to wildcard a substring of a filename?
I want to do something like take the part of a wildcard match and use it similarly to a regex match. The command might look something like this
cat foo_* | python magic.py > magic_*
If my file ...
1
vote
3answers
41 views
awk / sed to print only up to the underscore character
How can I use awk or sed to print a string only up to the first underscore character?
Before:
host100_044 2
host101_045 2
host102_046 2
After:
host100
host101
host102
0
votes
0answers
39 views
Distributed cron [migrated]
I maintain many servers and have the following requirements
Run a unix process at a given time
Run a unix process at boot time and keep it running (in case it dies)
Disable a running process
I am ...
1
vote
2answers
66 views
Cron daemon running status check
I have a script which need to be run as cron job.
In the staging environment i could run the script as a cronjob. but in the production environment it is not working,
so i checked whether cron ...
2
votes
2answers
70 views
Is Subsystem for UNIX-based Applications in Windows 7 same as cygwin
I downloaded Subsystem for UNIX-based Applications (Windows 7) from the microsoft.com site. During installation I saw a Cygwin screen, but I already have Cygwin. Is it more than Cygwin? It seems to ...
1
vote
1answer
59 views
sudo access to view/edit a crontab
I wish to be able to edit, or at least view, a crontab that is on a server.
Should I not be able to run this to do so:
sudo crontab -u root
When I do, I get this error:
Sorry, user crmpicco is ...
0
votes
0answers
36 views
Why the wireless connection in linux ubuntu often disabled suddenly?
I am using linux ubuntu.
When I want to use a wireless or LAN, the connection is often turned off by the sudden. But suddenly the connection back to normal anyway.
Maybe there's anyone who can help ...
2
votes
3answers
49 views
Solution for sending html email from cronjobs
I am looking for a way to email the output from various cronjob to specific addresses. The cronjob MAILTO command is too generic. I therefore pipe the output of a job into the mail command.
This ...
0
votes
1answer
67 views
tmux: set pane title to currently running command?
How can I make tmux to set pane_title automatically to currently running command?
Actually the setting automatic-rename is just what I want for pane_title, but for it's only for window_name.
2
votes
1answer
30 views
The Less command can list directory contents in Gentoo Linux, but not in Ubuntu Linux
I regularly use the 'less' command in Gentoo like so:
less /tmp
(or any other directory, which I have access to.)
Less then proceeds to show me the contents of that directory. I can also use Less to ...
0
votes
1answer
38 views
create alias to ssh to a server and then connect to mysql
I currently have an alias to connect to a remote server:
alias server='ssh user@ec2-00-00-00-000.compute-1.amazonaws.com'
I would like to have an alias to connect to this server, and then ...
0
votes
3answers
33 views
What will happen when I 'cat' 'ksh'?
I used the following command in my unix box.
$ cat ksh
And it gave a rolling log of latin and greek letters and symbols and it kept on going with no signs of stopping. Eventually I had to close my ...
0
votes
2answers
31 views
How to calculate a column of sums or test inequalities?
Given
34-2
34-5
34-3
I'm looking to obtain
34-2=28
34-5=29
34-3=31
Or, this would also be helpful:
given:
34-2=5
34-5<=34
34-3=31
I'm looking to obtain
! 34-2=5
34-5<=34
...
0
votes
1answer
28 views
Append line length at end of each line
Given input:
tree
branch
the desired output is
tree 4
branch 6
What is a *nix available command that does this?
0
votes
2answers
63 views
using history command with ssh and getting output with time stamps
Basically i want to get a record of all commands executed on my ssh server, with their times.
The codes i have tried are :
ssh user@ip 'export HISTFILE=~/.bash_history; set -o history; history'
I ...
0
votes
1answer
27 views
list files with full modification date
I want to produce a list of files in a directory and feed it into a script to generate database entries including their creation dates. The database is Solr, so I need to be able to translate ISO 8601 ...
0
votes
1answer
88 views
How to run .sh file from anywhere on MacOSx
I have several utility programs that I need to run. What I am doing write now is going to the bin directory of thee apps and running .\program.sh to run them. Obviously not practical to run it ...
2
votes
1answer
63 views
Trying to set incoming SSH IP address in tmux Status Bar
I'm trying to set the incoming IP address of my SSH client in the tmux status bar but for the life of me I can't figure it out. This is my current setting in my .tmux.conf
set -g status-right ...
0
votes
1answer
29 views
“ls -t remotefile localfile” does not work over FTP
I'm interested in listing remote files (with names matching a pattern) by date, and storing this list locally. The various things I've tried follow:
ls -t SL*.txt
...is interpreted as a request ...
0
votes
0answers
24 views
Tcsh messing up strings with tilde
I'm having a weird problem with my tcsh, and have been testing the following on both AIX 6.1.6.5 and 5.3.12 servers:
While logged in as root and in tcsh, I run the following command echo ~root, and ...
7
votes
3answers
315 views
How do I set up SSH so I don't have to type a password, and without using a public key?
I know there are dozens of questions here about how to connect to an SSH server without typing your password every time, and the answer is always "use a public key." Well, I find myself in the rare ...