The command tag has no wiki summary.
4
votes
2answers
119 views
Why doesn't ln -s tell that it fails when creating a symlink to an existing symlinked directory?
When running (on linux different ubuntu variations):
>ln -s dir_1 symlink_dir
>ln -s dir_2 symlink_dir
It fails without telling that it fails. But if you do the same thing on a file instead ...
0
votes
1answer
37 views
Command not found
I am trying to stop a syslog using chkconfig but bash says that command is not available. But when I do
man chkconfig
it opens man page.
This is the command i'm trying to execute.
...
4
votes
3answers
87 views
Test command in unix doesn't print an output
When I type this in the terminal
test 4 -lt 6
I don't get any output. Why not? I need that 0 or 1
2
votes
2answers
98 views
What's the difference between “dir” and “ls”?
I have compared the man pages of dir and ls and they seem to be exactly the same. Both are part of GNU coreutils and "list directory contents".
The only difference I've seen so far is that dir ...
15
votes
2answers
326 views
What is the point of the `cd` external command?
As referenced in this fine answer, POSIX systems have an external binary cd in addition to the shell builtin. On OS X 10.8 it's /usr/bin/cd. You can't use it like the builtin cd since it exits ...
3
votes
5answers
60 views
How to move all files and folders via mv command
How can I move all files and folders from one directory to another via mv command?
4
votes
1answer
101 views
Command & binary exists but cannot be executed
I transfered /etc/* files from one Linux server to another and now I have a strange error. Both are Debian Squeeze.
When I run a command, e.g. ssh, I get an error:
bash: /usr/bin/ssh: No such file ...
2
votes
1answer
58 views
Computer speed in flops
Nowdays, The speed of supercomputers are measured in Flops. Is there any linux command or tool that can calculate or gives the speed of a processor in Flops. If not, than how do we measure it.
1
vote
2answers
99 views
Where to find the source code for ps?
I want to check out the source code for commands such as ps. It seems to be impossible to search LXR (linux.no) for "ps". Where do I find it?
3
votes
3answers
157 views
Split command output by linebreak?
I have a command returning multiple lines. For further processing I need to process each single line of those lines.
My current code works by modifying the IFS (Internal Field Separator):
...
5
votes
1answer
232 views
The “yes” command
There is a yes command in unix/linux which basically infinitely prints y to the stdout. What is the point of it, and how is it useful?
1
vote
2answers
105 views
What are the practical uses for the GNU factor command?
Looking through the GNU Coreutils, I spotted the factor command, that I had never noticed before.
Reading the man page:
Print the prime factors of each specified integer NUMBER. If none
are ...
4
votes
2answers
186 views
How to run time on multiple commands AND write the time output to file?
I want to run time command to measure time of several commands.
What I want to do is:
Measure the time of running of all of them added together
Write the time output to a file
Write the STDERR from ...
2
votes
1answer
104 views
Git auto-complete
I am using Git as many of you do. Also, I don't use any GUI for that — just CLI. So I was wondering: are there any way to make Git commands (git status, git checkout etc.) complete themselves when ...
3
votes
1answer
132 views
How to check will my computer is going to reboot(or shutting down)?
When I send a reboot command(or shutdown) command to a Linux machine does it keeps that messages at somewhere and can I query it. I.e. I will send a reboot command and after that I will run another ...