11 Answered Questions for the topic command line
How to count lines in a document?
I have lines like these, and I want to know how many lines I actually have... 09:16:39 AM all 2.00 0.00 4.00 0.00 0.00 0.00 0.00 0.00 94.00 09:16:40 AM all 5.00 0.00 0.00 4.00 0.00 0.00 0.00... more
Is there any 'sudo' command for Windows?
I always work on a non-administrator account on my Windows computer. Sometimes I need to install programs which requires administrator access. As I mostly use the Windows command prompt, is there a... more
How can I display the contents of an environment variable from the command prompt in Windows 7?
In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the `JAVA_HOME` or `PATH` variables)?I have tried with `echo $PATH`,... more
How can I extract a predetermined range of lines from a text file on Unix?
I have a ~23000 line SQL dump containing several databases worth of data. I need to extract a certain section of this file (i.e. the data for a single database) and place it in a new file. I know... more
How can I reverse the order of lines in a file?
I'd like to reverse the order of lines in a text file (or stdin), preserving the contents of each line. So, i.e., starting with: foo bar baz I'd like to end up with baz bar foo Is there... more
Command Line Linux
Linux command to print directory structure in the form of a tree?
Is there any linux command that I can call from a Bash script that will print the directory structure in the form of a tree, e.g., folder1 a.txt b.txt folder2 folder3
What does the number in parentheses shown after Unix command names in manpages mean?
For example: man(1), find(3), updatedb(2)? What do the numbers in parentheses (Brit. "brackets") mean?
How to get the current date and time in the terminal and set a custom command in terminal for it?
I have to check the time in linux terminal.<br/> What is the command for getting date and time in Linux terminal ?<br/> Is there any way in which we can set custom function ?
SAS Display Manager commands?
The SAS display manager is a comamnd line interface to the SAS system, which remains in Base SAS as a legacy facility. However the online documentation on how to use this facility is sparse at... more
How to find out what group a given user has?
In Unix/Linux, how do you find out what group a given user is in via command line?