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

-1
votes
0answers
19 views

How can i make my http server look like its from brazil?

So i have created a http server http://impulzz.comuf.com/cstrike/ and its located somewhere in the US, so when i do a trace route some city in the US comes up, I would like to make it look like this ...
0
votes
2answers
5k views

How to move files to hdfs in hadoop using unix command

I have 2 directories "dft" and "hdfs" in the unpacked Hadoop folder. I am trying to copy the file(StartUnit.txt) in dft into hdfs. The corresponding command and exception are as shown below ...
0
votes
0answers
3 views

Running time of locating a file in a directory

When you search for a file in a directory with a large number of files (n), what is the worst case running time of locating this file? I mean does the OS (linux) sequentially check all filenames in ...
-4
votes
1answer
24 views

Owner and User in Linux [on hold]

I am facing issue with permission in Linux. I would like to know the difference between User and Owner of a particular file and directory, if its a non root user in linux. Please help.
2
votes
2answers
2k views

Is it possible to get user's input during installation of rpm?

Is it possible to get input from a user during an rpm installation? I have a script that works by itself (taking input from a user and doing actions) but when run as part of the post install of an rpm ...
0
votes
1answer
21 views

Get the Group name which has GID=0

I wanted to write a shell script in which it needs to give the group name whose GID=0.I used awk command like this, awk -F ':' {$3==0} /etc/group | cut -d ':' -f1 It works fine in redhat,aix.But ...
1
vote
0answers
15 views

Deny access to a specific folder for a sudo user

So here is the case: I am root in an Ubuntu system. I want to give a user (say username is X) permission to execute any command but at the same time I have a folder that I want no one to be able to ...
0
votes
0answers
5 views

How do I add printer to AIX menu choices. (Unix operating system)

I need help assigning an alias name (printer name in menu) to a printer already installed in root mode on AIX 5.3/Unix operating system. I have added ip address and host name to etc/hosts already. I ...
0
votes
1answer
13 views

What do the parameters in update alternatives install mean

I need help in understanding the following parameters "/usr/bin/java" "java" ""/usr/java/latest/bin/java" 1 in the following command. update-alternatives --install "/usr/bin/java" "java" ...
-1
votes
0answers
11 views

OpenWRT LuCi redirect to https

LuCi is accessible by https and http is disabled with uhttpd's listen_http. How can i redirect http request to LuCi to https?
2
votes
3answers
12k views

How to copy a file from unix to windows machine, from commandline

How to copy a file from unix machine to windows machine, from commandline.
0
votes
1answer
30 views

No such file or directory when executing an existing file

I have norrowed the error down to this from a larger script and I'm getting the error "No such file or directory" when I try to execute a file which exist and I have the correct permissions for. ...
3
votes
1answer
2k 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 ...
4
votes
1answer
14k views

How to change user in WinSCP?

I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP? E.g. I have personal account in Unix computer A. I can log into this computer ...
3
votes
1answer
3k views

Need to copy a file from unix box to windows folder using pscp command

I have a unix svr A: username: uname password: pwd then there are some files under /usr/local/jboss/configuration which are accessible only when a 'sudo su' command is performed. (and the username ...
2
votes
1answer
74 views

What is the scope of “exported” in Unix shell variables?

I have set some environment variables in the following way: MY_VAR='helloworld' export MY_VAR Then I have switched to another user via su SOME_OTHER_USER I echo the MY_VAR variable.. and I see ...
0
votes
0answers
15 views

Can’t cd, ls, chown/mod or rm directory — Unknown error: 211 in Mac OS X

Never seen something like this in all my years. This is happening in Mac OS X: $ ls -lO@ea dr-xr-xr-x 2 root wheel - 1B Mar 20 23:10 Music/ $sudo cd Music/ cd:13: unknown error: ...
1
vote
1answer
23 views

How to correct malfunctioning Terminal in Mac OS X?

I am using Mac OS X 10.10.2 (Yosemite)—not a server version of the OS—and standard “Terminal” commands like ls, sudo, cp, mv, rm are no longer recognized in my Mac “Terminal.” I face this problem ...
52
votes
3answers
58k views

What is the Windows equivalent of the Unix command cat?

I want to do exactly what unix "cat" does, but on my PC. Is there a simple equivalent command for the Windows command line? Specifically I want to create a file from all the files of a given type in ...
2
votes
3answers
46 views

Apparent .bash_profile and .profile conflict in Mac OS X

I have an issue where, when I load up new terminal windows, I have to source the ~/.profile to get my PHP path working correctly. In essence of my issue is getting terminal to use MAMP PHP and MySQL ...
48
votes
6answers
27k views

Is there a way to see any tar progress per file?

I have a couple of big files that I would like to compress. I can do this with for example tar cvfj big-files.tar.bz2 folder-with-big-files The problem is that I can't see any progress, so I don't ...
0
votes
1answer
16 views

how to add all the integers between two lines with a pattern and print

I have an input file (sample.txt) Sat 02/28/2015__19:32:37.63 262,404 K 100,964 K 112,052 K 124,628 K Sat 02/28/2015__19:37:38.41 262,408 K 100,964 K 112,056 K Sun ...
4
votes
3answers
2k views

How to tar.gz everything but .jpg/gif/png/wmv/flv/tar.gz/zip?

how do I tar.gz everything apart from jpg/gif/png/wmv/flv/zips, recursively, via the Unix shell?
1
vote
1answer
29 views

How to mount a device without a password

I am using the following command in a script to mount a device. However whenever I run it, it prompts for a password. sudo mount -t cifs //xxx/lon-hsv/BT/APPOPS/Qlikview /mnt/appops -o ...
1
vote
3answers
9k views

Installing “SoX” (Sound eXchange) via the Terminal in Mac OS X

I’m new to installing applications via the “Terminal,” so excuse my absolute ignorance on the subject. I want to install SoX (Sound eXchange), so I can do some ninja audio editing. First I installed ...
20
votes
6answers
18k views

tar – extract discarding directory structure

unzip has a nifty option -j, whereby the directory structure of the archive is discarded, and all files are extracted into the same directory. Is there a way of making tar work in the same way? ...
0
votes
2answers
188 views

Ctrl+Z and fg to append commands

I would like to know what is the behaviour of Ctrl+Z and fg in bash when wanting to append commands to be executed after a running command has finished. For example, in the sequence for commands ...
12
votes
4answers
20k views

finding L2 cache size in Linux

I wanted to know how to find L2 cache size in Linux... for L1 cache size, I am doing the following pico /proc/cpuinfo what about L2 cache size?
0
votes
1answer
58 views

How can I disable FTP access for users

I want to temporarily disable the FTP Access of the FTP users which are added from Cpanel I have tried chsh -s /sbin/nologin aadmi which says "chsh: user "aadmi" does not exist." Tried sudo echo ...
0
votes
1answer
3k views

ksh Auto-Completion PuTTY Configuration

I'm having a bit of a problem configuring my PuTTY client to work with the auto-completion feature in the ksh shell. I do a listing on the root with the directories /home and /homeroot and it returns ...
6
votes
8answers
25k views
6
votes
3answers
4k views

Start a systemd service inside chroot

With init scripts (or with openrc) I alway could run services from a different installation root. but when I run chroot /somepath/to_root /usr/bin/systemctl start someservice I got: Running in ...
27
votes
3answers
17k views

Unix: How to unsplit in screen

I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. ...
1
vote
3answers
2k views

Loop through a directory unix shell programming

Use a for loop to go through the filenames in the directory. In this version, only loop through the filenames that do not have a ".old" extension Inside the loop, rename the file to the new name.
0
votes
0answers
10 views

Scientific Linux 5.5 hangs at the beginning

We are taking theses days a parallel processing course in college, we are working on scientific linux 5.5 version with MPI, I just imported .ova on the virtual box but unfortunately when am trying to ...
0
votes
0answers
22 views

UNIX case statement multiple parameters

I execute a script like ./script.sh with one parameter: ./script.sh on. This tells a script to turn my light off or on depending on the value of the parameter. I use this case statement for this: ...
28
votes
10answers
17k views

Is there a way to display a countdown or stopwatch timer in a terminal?

How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
0
votes
1answer
7k views

Setting timezone in AIX

The timezone is set to "CET" but date displays CEST $ echo TZ CET $ date Tue Apr 16 15:56:57 CEST 2013 Noticed the timezone on another similar system is "CET0" (not sure what the 0 means here!). ...
32
votes
4answers
27k views

Find out if user name exists

How can I find out, in a shell script, whether a given user name exists on the current system? /etc/passwd and /etc/shadow are incomplete. Consider OS X's Directory Services, or Linux with Likewise ...
2
votes
1answer
13 views

How can I swap patterns in filenames?

I have a folder of files with names like thing.y.big.png thing.y.small.png thing.xxx.big.png thing.xxx.small.png and I would like to rename them so that the 2nd and 3rd "fields" are swapped. In the ...
1
vote
1answer
16 views

How to create filename.tar.Z file on SunOS operatting system

I am trying to create filename.tar.Z file using single command on SunOS but it doesn’t seem to work: bash-3.2$ tar c DIR | compress >DIR.tar.Z tar: /dev/rmt/0: Permission denied bash-3.2$ Other ...
0
votes
2answers
49 views

unix Command doesn't work

The command: tar c DIR | compress >DIR.tar.Z which works on a Debian-based Linux, fails on SunOS. Why?
0
votes
1answer
22 views

How to handle a condition when an expect script executing another script on a remote host is interrupted?

Im using an expect script to say xyz.exp to login to a remote host and execute another script abc.sh Now most of the times abc.sh runs fine, but there is a scenario where if a certain condition is ...
1
vote
0answers
89 views

ZIP and copy backup from Windows server to Unix

I have a Windows application server which is working on weblogic. Everyday backup is happening for the server itself – it is increasing the load on the server. I have an HP Unix server for backup ...
2
votes
3answers
2k views

How to test stability of wireless router

I had a wireless router that would intermittently drop connections, so I had switched to using a different router. I have since updated the firmware on the problematic router. Is there an easy way to ...
5
votes
4answers
12k views

How can I select and delete lines of text in vi?

If I want to select particular text of line and delete lines, how can I do that in vi (give the simplest means)?
2
votes
1answer
45 views

Common tips for compressing/extracting large folders? [closed]

Are there any common tehniques or issues I need to be aware that can speed up or make more robust the process of compressing/uncompresing large (>60gig) folders with many (>3000 files) elements ...
0
votes
1answer
16 views

Assign Substr of a string to a variable

I am new to unix script. i am asked to modify a ksh script. it requires i assign a substring of a string to another variable. I tried below and its not working GET_OLDEST_FILE=`ls -ltr ...
1
vote
0answers
18 views

umask linux incorrect file permissions

id buser - umask 0022 - group - appgrp directory /sample/sftp getfacl sftp # file: sftp # owner: appsdr # group: appgrp user::rwx user:590:rwx user:15003:rwx group::rwx mask::rwx other::r-x now ...
2
votes
4answers
721 views

Why is my sudo generated file owned by root?

When I run '# sudo touch newfile' my expectation was that the file would be owned by me, not by root, as my understanding of sudo is that it is giving me, the user, root priviledges but does not ...