The command tag has no wiki summary.
1
vote
2answers
157 views
explain the command `printf — “#!${opt_E}”`
I am not able to understand this command and getting confused :
here are things i executed on linux trying to undertand its working
[root@testgfs2 final_scripts]# printf -- "#!${opt_E}"
printf -- ...
1
vote
3answers
127 views
how to forbid a command without a permission
I intended to delete all the backup files in a directory, so I was going to type rm *~ in the terminal. Unfortunately, I hit the Enter before hitting the tilde and unhappy things happened. Although, ...
1
vote
2answers
379 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?
1
vote
3answers
154 views
Print folders names character count
I am trying to use find . -type d -print | wc -m where -m or --chars would print the character counts of the folder names.
Take following screen shot as example, the character count for tempFolder + ...
1
vote
2answers
85 views
Is it better to pass all files to mv or to run a bunch of mv processes in parallel?
I have three ways of running mv. First:
mv /db/dbfile1 /db/dbfile2 /db/dbfile3 /usb_storage/
and second:
mv /db/dbfile1 /usb_storage/ &
mv /db/dbfile2 /usb_storage/ &
mv /db/dbfile3 ...
1
vote
1answer
80 views
What does sourcing a file mean in a shell? [duplicate]
Possible Duplicate:
Different ways to execute a shell script
What happens when I issue the following command:
source devenv.csh
How does it differ from running it just as devenv.csh ?
1
vote
1answer
101 views
What does - mean with association to Linux files and directories [duplicate]
Possible Duplicate:
What does “--” (double-dash) mean?
What does '--' (two dashes) mean with association to Linux files and directories.
I've found something else but not too sure if it is ...
1
vote
2answers
66 views
Unix command to rename multiple files
I have some dirs with different plugin-cfg.xml that I want to take a backup off and keep in the same dir.
Eg
Plug6_a1/plugin-cfg.xml
Plug6_a2/plugin-cfg.xml
Plug6_a3/plugin-cfg.xml
Q- how can I make ...
1
vote
1answer
68 views
Please explain the output from the jobs command
When I ran jobs command I see the following output :
[1] - Suspended ./startWebLogic.sh
[2] + Suspended (signal) top
What does -/+ indicate in the second column ?
...
1
vote
2answers
1k views
tar: Unexpected EOF in archive
I am trying extract .tar.gz file it but with no luck
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
the ...
1
vote
1answer
176 views
How to active tabs on windows by terminal? wmctrl doesn't have option available
I'd like improve a script of mine that uses firefox to perform tasks. I need activate a window and a tab with a specific name. For example, the window name could be Mozilla Firefox and the tab ...
0
votes
3answers
503 views
What is the purpose of -e in sed command?
I can't find any documentation about the sed -e switch, for simple replace, do I need it?
e.g.
sed 's/foo/bar/'
VS
sed -e 's/foo/bar/'
0
votes
3answers
69 views
Find executable files recursively
I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.
ls -l `find ...
0
votes
3answers
252 views
What is the difference between ps and top command?
What is the difference between ps and top command ? I see that both can display information about running processes . Which one should be used when ?
0
votes
1answer
117 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.
...
0
votes
2answers
60 views
'df' command doesn't list /home directory
In the book I am reading, the output of df command is shown like this:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 15115452 5012392 9949716 34% /
/dev/sda5 59631908 ...
0
votes
2answers
153 views
Why screen is not splitting my GNOME terminal?
I am working in a remote Linux box using VNC.I have a single terminal with lots of tabs opened in my system. How can I split them using the screen utility? Does the screen utility work with already ...
0
votes
1answer
33 views
How to find packages only which package name equal to text with aptitude?
When I want to search a package which named 'z', aptitude find packages which contains 'z' in package name same as 'like' in SQL, so aptitude find a lots of packages.
How can I search packages which ...
0
votes
0answers
19 views
I want to use the command 'shutdown -r now' in Lazarus
I want to use the command shutdown -r now in Lazarus, but I don't know how to do it. Any tips or examples that you can give me I would be most grateful.
0
votes
2answers
129 views
Why does this compound command report errors when copying directories?
if one executes the following two commands in one line, as follows,
rm -rf dir ; cp -r dir2 dir
it may complain that cp can not create directory dir/subdir: File exists
but if these two commands ...
0
votes
1answer
57 views
Why does this compound command report errors when copying directories? [duplicate]
Possible Duplicate:
Why does this compound command report errors when copying directories?
if one executes the following two commands in one line, as follows,
rm -rf dir ; cp -r dir2 ...
-2
votes
1answer
539 views
Check if the command exists in bash
I want to check if a given command exists in bash and I care only about the native commands of the bash and not the scripts written by the user. When I refer to native commands I mean all those ...
-3
votes
2answers
354 views
Please explain this output of ps -ef command?
A part of the output from the ps -ef command is given below :
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 2012 ? 00:00:01 init [3]
root 2 ...
-4
votes
1answer
101 views
help with making the move from Win to Linux [closed]
This will be a looong "question" not because I intend to make it like this but because the more I learn about Linux the more complex it seems to become for me to figure out which Linux distro, and/or ...