Top "Unix" questions

This tag is EXCLUSIVELY for PROGRAMMING questions that are directly related to Unix; general software issues should be directed to the Unix & Linux Stack Exchange site or to Super User.

grep, but only certain file extensions

I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types. …

linux unix search command-line grep
How to run the sftp command with a password from Bash script?

I need to transfer a log file to a remote host using sftp from a Linux host. I have been …

bash shell unix ssh sftp
Use grep --exclude/--include syntax to not grep through certain files

I'm looking for the string foo= in text files in a directory tree. It's on a common Linux machine, I …

unix search shell command-line grep
How can I send an email through the UNIX mailx command?

How can I send an email through the UNIX mailx command?

unix email mailx
How can I convert a Unix timestamp to DateTime and vice versa?

There is this example code, but then it starts talking about millisecond / nanosecond problems. The same question is on MSDN, …

c# datetime unix epoch data-conversion
Command to change the default home directory of a user

I would like to know whether there is any simple shell command to change the user home directory in Linux/…

linux shell unix
Argument list too long error for rm, cp, mv commands

I have several hundred PDFs under a directory in UNIX. The names of the PDFs are really long (approx. 60 chars). …

linux unix command-line-arguments
Display current path in terminal only

I'm SSH'd into a computer, so I can't use a GUI to access the path name. Is there a way …

unix terminal path
How to grep a string in a directory and all its subdirectories?

How to grep a string or a text in a directory and all its subdirectories'files in LINUX ??

linux unix grep centos
How to get the primary IP address of the local machine on Linux and OS X?

I am looking for a command line solution that would return me the primary (first) IP address of the localhost, …

bash unix ip ifconfig