Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs.

learn more… | top users | synonyms

0
votes
3answers
356 views

Editing/Saving Files live on unix server

I can connect remotely to my unix server via SSH, both ftp and shell mode using port 22. However I am not able to do so in Visual Studio. I want to be able to edit files live in a GUI interface. Any ...
0
votes
4answers
165 views

Unix permissions issue

An executable file has permissions -rwxrwxr-x and owner is root. When a non-root user tries to execute the file, I get a permission denied error. What am I not understanding?
0
votes
3answers
422 views

Installing ethernet device under LynxOS

I changed my hard drive which was running LynxOS to another computer with diferent processor/mother board but same periphericals configuration. Everything is working except the network ethernet card. ...
0
votes
2answers
256 views

When re-directing to a file in linux tcsh, how can I change the write buffer size to be larger?

In linux tcsh, if I am creating a log file like: CMD > cmd.log How can I make the write buffer, which caches the data before sending it to disk, be larger than the default? How can I buffer more ...
0
votes
2answers
277 views

Default key-binding to clear the command line

What is the default keybinding under Midnight Commander for clearing the command line at the bottom ? ( not the one you get with Ctrl-O, but the one-line prompt )
0
votes
3answers
94 views

Unix: How to check the existence of a tag at the beginning of each file before insertion?

The question is related to the question "Unix: Add a Tag to the beginning of each file?". How can I put the tag only to the files that do not contain the tag, such as <?php, already?
0
votes
1answer
19 views

Environment variable LC_ALL is always unset by default. why LC_ALL is unset?

Why LC_ALL is always unset by default on Linux and Unix machines? For example, on Linux: root@icubes:[~]# locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" ...
0
votes
2answers
34 views

Linux terminal for virutalization purposes, no X windows

I was wondering if I could download a linux distro somewhere that just featured the terminal with no GUI. Would this be possible in a Ubuntu liveCD?
0
votes
1answer
35 views

change permissions to a directory to 701

I'm supposed to change permission to a ~ directory to 701, thing is this is a web programming class and I know nothing of unix. I managed to get remote access and I can execute commands, so can anyone ...
0
votes
1answer
29 views

How do I make less open binary files without confirmation?

I have several log files that contain a few bytes which are not displayable characters (due to binary signatures on the requests). Every time I open them with less I get asked: $ less ...
0
votes
2answers
71 views

How to ignore a specific SMART error

I get an email about the same SMART error every day. I'd like to configure the SMART daemon to ignore this specific error, but only this, since I still want to now if anything changes or gets worse. ...
0
votes
2answers
83 views

Is there a unix command to output time elapsed during a command?

I love using time to find out how long a command took to execute but when dealing with commands that execute sub-commands internally (and provide output that allows you to tell when each of those ...
0
votes
2answers
194 views

Is it better to check if file exists before deleting it

Sometimes when I want to delete a file (from within a script), I will just delete it rather than checking if it exists first. So I do this: $ rm "temp.txt" 2>/dev/null Instead of this: [ -f ...
0
votes
2answers
51 views

How to find number of `_`-separated words?

I want to make a Unix command that reads a string and counts how many words it contains. In my case the words are separated by a _ (underscore) character, not spaces. For example, TABLE_PERSON ...
0
votes
1answer
27 views

Replace '-' char using sed

I have a text file, quite similar to this one: JACK BLACK 123456 -1245368 - BRIDGET RED 1245 548425 + JOHNNY HOMUSS 55482 -4325 - I wanted to use a sed command ...
0
votes
2answers
36 views

Inserting a linebreak in lines starting with a pattern

I have a huge file that has the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 ...
0
votes
1answer
423 views

vi Error | Out of memory saving lines for undo - try using ed

While executing the following command on a large file: vi largeFile.log I get the following error: Out of memory saving lines for undo - try using ed My environment is: AIX6 I cannot add any ...
0
votes
1answer
110 views

How can I organize my Windows directories more efficiently? [closed]

I've been using Windows (7 now) for years now, but I can never figure out how to efficiently organize my directories and programs. I'm finding it difficult to locate and run programs that are spread ...
0
votes
2answers
46 views

Error - fi:command not found

if 0 -eq 0 then echo uploaded fi fi: command not found why?, can some one oint out the misake?. I am very new to unix scripting. I amusing 'csh'
0
votes
1answer
98 views

How to find the matching records from 2 files in unix

I have two files which contains email_ids. 1. Test1.txt 2. Test2.txt Test1.txt contents are: abc@gmail.com xyz@gmail.com mns@gmail.com Test2.txt Contents are: jpg@gmail.com joy@yahoo.com ...
0
votes
1answer
125 views

What is the maximum memory (RAM) limit for Solaris 11?

I have been trying to find out the maximum memory limit for Solaris 11 for a report that I am doing but with no luck. Can anyone please help?
0
votes
2answers
183 views

how to use grep and mv together in a directory in shell?

how do you grep the contents of all files in a directory for "TEST" then move those files to a different directory(like the home dir.)?
0
votes
2answers
48 views

Is there any limitation on file names under Unix?

We are using crontab to schedule jobs and it was not picking the files for processing that contain [ or ] or ¿. Is there any limitation on file names or do these characters mean something in UNIX? ...
0
votes
1answer
356 views

How To Let Certain Unix-User To Access Only One Directory

How To Let Certain Unix-User To Access Only One Directory, e.g. I want to let the following username dimension to access the following directory only /var/opt/test/reports/* How i can make that ...
0
votes
1answer
130 views

Print to file using enscript

I want to print to file using the unix command enscript. I've looked in the man pages but can't figure out how to get it to print to file without it going straight to the printer. Thanks
0
votes
1answer
107 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
0
votes
1answer
37 views

if recursively find ext, then, else on unix

This is what I normally use. But I need to recursively find an extension with, then, and else. The problem with this one is that it is not recursive. if ls $HOME/Downloads/*.ext >/dev/null ...
0
votes
1answer
229 views

666 permission even after making umask= 0000

I made my umask = 0000. However when I am creating a file it has 666 permission. Although directories get 777 , that's alright. Also my aim is to create file/dir with permissions 774, I guess umask ...
0
votes
2answers
64 views

What is the difference between different “make” commands?

So after running configure file on source codes for different applications one enters make and make install to install the application. My question is what is the difference between make and make ...
0
votes
1answer
2k views

Why can't I cd into a directory that is owned by a group that I belong to? [duplicate]

In the home folder of the pi user on my Raspbmc distribution, I have the following directories: $ sudo tree . -L 2 . `-- downloads |-- complete `-- incomplete They're owned by the ...
0
votes
3answers
115 views

iptables rule to block traffic not specified in all other rules

Is there a way to add a rule in iptable to block traffic not specified/covered in all other rules ? I know that we can use ! to block specific ports and ip addresses but there are just too many rules ...
0
votes
1answer
305 views

Website hacked 'FaK3SSH was here' how to remove?

our website has been hacked, check it here. I don't know what to do exactly and I can not contact my hosting provider at the moment since it's Sunday. Any idea where to begin to remove this? Website ...
0
votes
1answer
134 views

How to prevent users from renaming files while providing write permissions on Linux

For some special purpose, I want to prevent non-root users of the Linux Server from changing the filenames. However, they can modify and write to the contents of the file. How to do this from command ...
0
votes
3answers
157 views

Is it possible to to force passwords not to contain a pattern or dictionary word?

On UNIX or Windows plateforms, is it possible to force passwords not to contain a pattern or dictionary word? For example, could this password be automatically rejected on Windows 2008: ...
0
votes
1answer
54 views

Move Java installation to a new volume?

How can I move a Java installation to a new volume on my server? Right now we have Java and the OS (CentOS) running off of a HDD. We're trying to speed things up so would like to have the OS use the ...
0
votes
2answers
334 views

Hide files in unix without changing their name (adding the dot) so that scripts that use them still work [duplicate]

Short version: I want to be able to prevent certain files from appearing in the output of ls, without adding the dot, and thus changing their names. Long version: Recently, I moved a bunch of scripts ...
0
votes
1answer
229 views

How can I add a ssh host key in a client programmatically?

After installing a server, I want it to connect to a remote host and add its host key to ssh without asking for confirmation, inside a script. Can I do so by passing the expected fingerprint to the ...
0
votes
2answers
336 views

I want to open up my default SSH port (22) to see how many unauthorized access attempts I receive

I thought this would be a good place to ask this question: I want to open up my default SSH port (enable remote management in system settings and port forward my router) to see how many unauthorized ...
0
votes
1answer
105 views

Read local file from remote ssh

I am running a script on a remote host using ssh hostA shell: cat script.sh | ssh user@hostB The script resides on host A and is run on host B using the above ssh command. So far it was good. But ...
0
votes
1answer
110 views

How to use virtualenv?

Today I saw an example of how virtualenv command is used. It was the following four commands: virtualenv /tmp/vetest source /tmp/vetest/bin/activate pip install ipython-notebook deactivate The ...
0
votes
1answer
376 views

Solaris Encrypt command error

I am trying to use the encrypt/decrypt command on solaris /usr/bin/encrypt -l | -a algorithm [-v] [-k key_file] [-i input_file] [-o output_file] /usr/bin/decrypt -l | -a algorithm [-v] [-k ...
0
votes
1answer
41 views

Directory links in Unix?

Is there a way to create a link in unix that actually go to where the target is? $ cd ~/foo-link $ pwd /some/other/directory/foo Or something similar. What I'm trying to solve is that there are ...
0
votes
3answers
129 views

SSH and SCP giving error

I am doing the same steps (Perform SSH and SCP Without Entering Password on openSSH). But it keep asking password prompt while scp or 'ssh -l' command run. Same steps i did few days back, it was ...
0
votes
1answer
168 views

Dropbox on Linux Mint permissions issue

I have been developing a python package in dropbox. DB seems to be causing a very strange permissions issue. I own and have RW permissions to the directory and all of it's contents. Yet, when I try to ...
0
votes
2answers
2k views

Created New user in Linux, but not able to login in putty or SSH or else [closed]

I am new to Linux, I don't know in-depth things. I created a user from the root account, but I am not able to login as the new user (sampleUser). Here are the commands I used to create new user: ...
0
votes
2answers
806 views

Pass arguments to Unix executable in Mac terminal

I'm pretty new to Unix coding and would like to work on a few simple networking projects. I found a few tutorials that are exactly what I am looking for - this one in particular: ...
0
votes
2answers
531 views

How to make scripts run from anywhere on OS X?

I've correctly added my scripts folder to my $PATH. But I still cannot run the scripts from anywhere by simply calling them. How do I achieve this? Example. If I have ~/scripts/ in my path and in ...
0
votes
1answer
651 views

How to really force kill an application without rebooting? (Mac OS X 10.7 )

This is perhaps related to the question posted here: http://stackoverflow.com/questions/356722/killing-a-defunct-process-on-unix-system I cannot seem to kill Zotero after it crashes and I "Force ...
0
votes
1answer
103 views

How to list the content of a zip file within another zip file without extraction

We have a zip file which contains another zip file. We tried zip -l file on a zip file but we don't know how to list the content of the other zip file within it, without any zip extraction. Is that ...
0
votes
1answer
46 views

X-Forwarding on server

It is possible to use X11-forwarding running on a common remote server without GPU ?