Questions tagged [unix]

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

Excerpt from the Wikipedia page

Unix was originally written in assembly but has since been rewritten in C. It has been branched many times both commercially and open source. One popular variant is the BSD variant which originated from the University of California, Berkeley. It also gave rise to Linux.

Notable variants

  • Silicon Graphics - Irix
  • IBM - AIX
  • Sun Microsystems - Solaris
  • Hewlett Packard - HP-UX

Unix is officially trademarked as UNIX.

Unix on Wikipedia

1959 questions
14
votes
2 answers

unix sort treats '-' (dash) characters as invisible

a file with lines (aa ac a-b) unix sorts to (aa a-b ac) instead of the expected (a-b aa ac) it is as if sort is ignoring the '-' character. interestingly, a dash by itself is sorted correctly (a b c -) sorts to (- a b c). why? anyway to change…
ps
14
votes
2 answers

What are the best practices of the usr, var, and etc folders?

Possible Duplicate: Meaning of directories on Unix and Unix like systems I'm confused about the different uses for 3 of the standard "root-level" folders: /var /etc /usr What are the different use cases for these directories?
9
votes
4 answers

Linux cd .. command

Say if I need to do this a lot: cd ../../../../foo/sub1/bar/dest/ cd ../../../../foo2/sub1/bar/dest/ cd ../../../../foo3/sub1/bar/dest/ cd ../../../../foo/sub1/bar/dest/ Is there any faster way to not always typing ../../../../ so many times? Any…
Stan
  • 1,397
7
votes
9 answers

Best terminal unix editor to suggest to someone?

What's the best terminal editor to suggest to a unix newbie? i.e. not vim or emacs. There are a few editors, joe, nano, etc. Some have easy to remember commands / keyboard shortcuts, others don't. I'm looking for an editor that one could talk…
Amandasaurus
  • 32,281
  • 69
  • 194
  • 263
5
votes
2 answers

In UNIX, how can I cat a file located in a different server?

In UNIX, how can I cat a file located in a different server? Can anybody please help me? Thanks, Prasenjit
5
votes
9 answers

Find size of file in MB

How to find the size of file in MB in UNIX command line?
joe
  • 329
4
votes
2 answers

unix: copy files across two directories without overwriting existing

I have 2 folders , A and B. they are similar, but there are some files in A that are not present in B. what's the best way to copy only the new files in A into B, without changing the existing files in B?
GSto
  • 391
3
votes
4 answers

What is the icon or logo that represent UNIX?

Hello fellow root users ... Windows, Mac, Linux ... all have a windows/logo/icon to represent each. What do you think would be a appropriate icon/image/logo to represent "UNIX" in general? (I know UNIX has different flavors .... but just wondering…
Jackie
3
votes
1 answer

Generate a json with variable value from a file using bash

I have a fleet of raspberry pi's running as access points. I set the default SSID and PASSWORD using a simple bash script that runs at boot. I get unique values for this: SSID = cat /sys/class/net/wlan0/address | tail -c 10 | tr -d ":" PW = cat…
Juliano Piassa
  • 177
  • 1
  • 2
  • 9
3
votes
2 answers

Define "line activity" as understood by the Unix who command

What constitutes "activity" for the purposes of the Unix "who" command? We're trying to find idle sessions but have disagreements as to the precise meaning of the activity in this context. One person contends that the activity time is only reset by…
Matt Smith
  • 133
  • 3
3
votes
1 answer

Is a Unix group without an entry in /etc/group valid?

Is a Unix group without an entry in /etc/group valid? A user had the group as his primary group and that entry was deleted from the /etc/group file.
rrevo
  • 131
3
votes
3 answers

sudo: no tty present and no askpass program specified

I am trying to add some file in a remote server by BigTuna (continuous integration tool), and it give me a error message. Any one have any idea how can I add that file to server? sudo: no tty present and no askpass program specified
suvankar
3
votes
4 answers

Energy usage: RAM upgrade vs. paging to disk

This might not be answerable in theory, but any thoughts are appreciated: I have a UNIX server that has 2GB of RAM, and presumably it is slightly overloaded and swapping to disk heavily. It is a test server, and the only user is me, so being busy is…
benc
  • 683
2
votes
3 answers

UNIX password expiration time setting

Where and how exactly I can set the expiration time of password of users i.e.the time after which the UNIX OS prompts user after giving some warnings that your password will expire with in n days and then expire the user's password?
Sachin
  • 123
2
votes
2 answers

How do I get the psuedo terminal device of the current xterm?

I'd like to get the value of the current xterm window's psuedo terminal, for use in the "write" function. For instance, when I type ps I can see that all the current processes are on pts/4. Is there a better way to get "pts/4" other than grep on…
Eyal
  • 21
1
2 3 4 5