tagged [unix]
Listing only directories in UNIX
Listing only directories in UNIX I want to list only the directories in specified path (`ls` doesn't have such option). Also, can this be done with a single line command?
Convert python datetime to timestamp in milliseconds
Convert python datetime to timestamp in milliseconds How do I convert a human-readable time such as `20.12.2016 09:38:42,76` to a Unix timestamp in ?
- Modified
- 2 Apr at 04:36
How to grep a string in a directory and all its subdirectories?
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 ??
Delete specific line number(s) from a text file using sed?
Delete specific line number(s) from a text file using sed? I want to delete one or more specific line numbers from a file. How would I do this using sed?
- Modified
- 21 Jan at 20:8
cd into directory without having permission
cd into directory without having permission When `cd`ing into one of my directories called `openfire` the following error is returned: Is there any way around this?
- Modified
- 3 Dec at 23:51
unix sort descending order
unix sort descending order I want to sort a tab limited file in descending order according to the 5th field of the records. I tried But it didn't work.
How do you normalize a file path in Bash?
How do you normalize a file path in Bash? I want to transform `/foo/bar/..` to `/foo` Is there a bash command which does this? --- Edit: in my practical case, the directory does exist.
Size of a tcp packet on BSD
Size of a tcp packet on BSD If i need to find out the size of a tcp packet on BSD.....what do we need to do? Is there some utility which allows for this?
Can the Unix list command 'ls' output numerical chmod permissions?
Can the Unix list command 'ls' output numerical chmod permissions? Is it possible when listing a directory to view numerical Unix permissions such as `644`, rather than the symbolic output `-rw-rw-r--...
- Modified
- 29 Dec at 06:44
how to find host name from IP with out login to the host
how to find host name from IP with out login to the host i need to find the host name of a UNIX host whose IP is known with out login to that UNIX host
- Modified
- 20 Oct at 11:48
What do pty and tty mean?
What do pty and tty mean? I noticed many mentions of `pty` and `tty` in some open source projects, could someone tell me what do they mean and what is the difference between them?
- Modified
- 21 Dec at 09:50
List of Java processes
List of Java processes How can I list all Java processes in bash? I need an command line. I know there is command `ps` but I don't know what parameters I need to use.
- Modified
- 8 Jun at 18:0
Display exact matches only with grep
Display exact matches only with grep How can I display all jobs that ended OK only? When I try the command below, it shows both OK and NOTOK since both have "OK"
What is a bus error? Is it different from a segmentation fault?
What is a bus error? Is it different from a segmentation fault? What does the "bus error" message mean, and how does it differ from a [segmentation fault](https://en.wikipedia.org/wiki/Segmentation_fa...
- Modified
- 22 Aug at 09:4
How to edit a binary file on Unix systems
How to edit a binary file on Unix systems On Windows machines there are lots of third-party editors available to edit a binary file. How can I edit a binary file on a Unix system?
- Modified
- 25 May at 00:0
How to get the unix timestamp in C#
How to get the unix timestamp in C# I have had look around stackoverflow, and even looked at some of the suggested questions and none seem to answer, how do you get a unix timestamp in C#?
- Modified
- 13 Jul at 17:33
UNIX export command
UNIX export command I am trying to understand the use of `export` command. I tried using `man export`, but there is no manual for this command. Can anyone please help me out understanding the use of `...
What does "opt" mean (as in the "opt" directory)? Is it an abbreviation?
What does "opt" mean (as in the "opt" directory)? Is it an abbreviation? What does "opt" mean (as in the "opt" directory)? I commonly see this directory in Unix systems with development tools inside. ...
- Modified
- 26 Nov at 10:19
In Bash, how do I add a string after each line in a file?
In Bash, how do I add a string after each line in a file? How do I add a string after each line in a file using bash? Can it be done using the sed command, if so how?
How can I add a help method to a shell script?
How can I add a help method to a shell script? How do I check if a `-h` attribute has been passed into a shell script? I would like to display a help message when a user calls `myscript.sh -h`.
How to add values in a variable in Unix shell scripting?
How to add values in a variable in Unix shell scripting? I have two variables called count1 and count7 This shows an error "expression is not complete; more token required". How should I add the two v...
- Modified
- 30 Aug at 15:47
Delete the first five characters on any line of a text file in Linux with sed
Delete the first five characters on any line of a text file in Linux with sed I need a one-liner to remove the first five characters on any line of a text file. How can I do that with sed?