one or a set of directive issued in the *nix environment to get information, change state of something or to execute something; in other word to gain an objective.

learn more… | top users | synonyms

1
vote
4answers
179 views

How can I force the use of a specific binary when running a script

How can I force a specific binary to be used when executing a bash script? I have a bash script which uses the "php" binary. There are several php versions on my computer. The main php binary, as ...
0
votes
1answer
322 views

Linux Mint XFCE, command to launch menu

What is the command that launches the whisker menu in the Linux Mint xfce edition. For another distribution that used xfce it was xfce4-popup-whisker menu but that doesn't seem to work. I would like ...
0
votes
1answer
36 views

In which way is a commented line active in a program file?

To solve the bug reported here the solution seems to be commenting, not just adding a certain line in a file - as explained here and here. That is - to make that bug disappear in Xfce, a certain line ...
1
vote
4answers
140 views

List all commands that a shell knows

What can I type at my shell (which happens to be bash) that will list all the commands that are recognized? Also, does this differ by shell? Or do all shells just have a "directory" of commands they ...
0
votes
2answers
230 views

I used the move command and all files disappeared [duplicate]

I was moving all data to another folder and made 1 mistake and run this commmand mv * /* all files have disappeared now. How can I find them? Or are they deleted?
2
votes
3answers
582 views

Difference between 'ifconfig' and 'ip' commands

I read some articles/tutorials on 'ifconfig' command, most of them included a common statement - "ifconfig is deprecated by ip command" and suggested to learn ip command. But none of them ...
0
votes
2answers
168 views

The -cp option to the java command [closed]

java -cp FILE.jar FILE.Main inputfile What does the -cp option mean? For that matter, what a negative sign in front mean? I've searched everywhere and couldn't find the answer.
0
votes
2answers
136 views

What is the Run prompt equivalency in Linux?

In Windows, there is the Run prompt, which you can access with Win+R key. What is the equivalency to this in Linux? Is there even such a thing or is the Terminal the main prompt you would use in ...
2
votes
3answers
312 views

what is “play” command/package available by default in Linux Mint and how to remove it

I'm trying install play framework on Linux Mint and setup its variable: export PATH=$PATH:/relativePath/to/play But command can't run because it's being overlapped by another play command which was ...
1
vote
0answers
46 views

Using alot MUA with nottoomuch-addresses

I try to use the MUA alot to work with the nottoomuch-addresses.sh script for autocompletion of addresses within alot like described in: ...
4
votes
3answers
213 views

How to find a file with specific permission of a specific user?

How do I get a list of all the files which permission is "read and write" for a specific user. For example, when I go on the desktop of my mac, then right click on file "A", then "get info", then on ...
2
votes
2answers
166 views

Memory usage command with syntax similar to the time command

What command shows the memory usage of a program, i am looking for a command that is simple to use and has similar syntax to the time command. I am trying to find the memory usage of a md5 hashing ...
4
votes
1answer
153 views

What does the command “$()” do in UNIX?

What does the command $() do in UNIX? Could someone explain what is the significance of $ in the below examples; $(echo var=10) and eval $(echo var=10)
0
votes
1answer
235 views

How to run a shell command in a server?

I am fairly familiar with computers and web stuff but this is a bit out of my comfort zone. I have a shell script (.sh file) I want to run in a Linux server I have one site hosted (the script is a ...
1
vote
1answer
133 views

Execute command supplied by function parameters

I'm trying to create a function method in a bash script that executes a command which is supplied to the method by the paramters. Meaning somethings like this: special_execute() { # Some code ...
10
votes
5answers
2k views

Delete 100 lines from vi editor using single command

I am using Ubuntu and trying to delete all 100 lines from vi editor but I got interview question of doing this in one command.
0
votes
4answers
1k views

How to create custom commands in Unix/Linux? [closed]

I'm a newbie in Unix/Linux environment. Can anyone guide me to create custom commands in Unix/Linux. Thanks in advance
1
vote
1answer
80 views

Find if a process terminates in a specific amount of time

I am running a program.Inside this program i run a specific command and i use ulimit command to terminate the running of that command if it exceeds an amount of time.To be more clear i run this: ...
1
vote
1answer
170 views

Bash command that uses wildcard in place of folder to copy folder contents of multiple files into one directory?

I have a directory ~/dir that contains a bunch of random folders like: ~/dir/av 801 and ~/dir/lm 320. I want to copy the contents of every inner folder (ie: av 801) into a different directory. The ...
0
votes
1answer
64 views

How can I see the rate of my wireless card?

I am setting manually the bit-rate of my wireless card ! sudo iwconfig wlan0 rate 54M Where can I see if it is applied, because the command does not give any feedback !!!
4
votes
4answers
383 views

What does <<< mean? [duplicate]

What does <<< mean? Here is an example: $ sed 's/a/b/g' <<< "aaa" bbb Is it something general that works with more Linux commands? It looks like it's feeding the sed program with ...
0
votes
1answer
83 views

Command “I'm” on linux ubuntu [closed]

I'm new at linux, ubuntu, and I did type I'm running and then like if it was a program or something else, I was allowed to write more... nothing else... I just want to know more about this command ...
-1
votes
1answer
99 views

can't view `split` output files with cat [closed]

File a.txt contains: 1 one 2 two 3 three 4 four 5 five 6 six Then the command: split -2 a.txt output_ yields as output three new files output_aa, output_ab, output_ac When I type: cat output_aa I ...
21
votes
3answers
3k views

Why is dmesg called dmesg?

Is there any explanation/history behind the name of the command dmesg (which prints out some kernel messages)?
0
votes
0answers
158 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.
8
votes
0answers
206 views

how to get exit status from the command before the last [duplicate]

I have solaris machine ( solaris 10 ) please Look on the following simple commands (haconf -makerw | grep -iq "Cluster already writable") # haconf -makerw VCS WARNING V-16-1-10364 Cluster ...
3
votes
5answers
186 views

find which system is transmitting through a particular port

I am using command nc -lu <port no.> to find on given port any data is receiving or not. I am getting data if there is transmission going on (but don't know from where!). Is there any way that ...
0
votes
2answers
162 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 ...
1
vote
1answer
129 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
3answers
528 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 ...
1
vote
2answers
181 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 ...
3
votes
1answer
2k views

How to see the total progress while copying the files

We know that if we give --progress parameter to rsync it will show the progress of files copied. But issue is that is shows the progress for each single file not total or overall progress. So how to ...
10
votes
2answers
541 views

What's the reason for this specific “rm” sequence in the xkcd joke?

Here's part of this xkcd comic strip where the idea is that the author can't write a sort program so he adds code to delete all files system("rm -rf ./"); system("rm -rf ~/*"); system("rm -rf /"); ...
3
votes
1answer
86 views

clear full-screen in script and get the previous prompts after exiting script

Today I was using glance tool in my office to monitor CPU utilization.When I run glance from terminal ,the command clears the screen and after all the work when I quit back to the terminal,the ...
2
votes
3answers
981 views

Why does Firefox refuse to die despite killing it with pkill -9?

I am issuing the following command to kill Firefox on my Red Hat Linux box: [subhrcho@slc04lyo ~]$ pkill -9 -f firefox [subhrcho@slc04lyo ~]$ However, when I try to invoke Firefox through ...
0
votes
2answers
867 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 ...
1
vote
2answers
133 views

Best way to call command within a shell function having the same name [duplicate]

I like to encapsulate commands within shell-functions using the same name. But to avoid the shell-function calling itself recursively, I specify the complete path of the command as the following ...
2
votes
1answer
197 views

Equivalent of pick command in linux

OS: Linux Mint 14 Is there an equivalent of the pick command available in Linux? Pick command is the one where for each given argument, it asks yes/no and prints the selection to stdout. This script ...
1
vote
1answer
538 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 ?
2
votes
3answers
368 views

What are commands to find shell keywords, built in functions and user defined functions?

I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order List of aliases List of shell keywords List of ...
25
votes
2answers
4k views

How to stop the find command after first match?

Is there a way to force the find command to stop right after finding the first match?
-4
votes
1answer
138 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 ...
5
votes
2answers
2k views

Which of these three commands is telling the TRUE Redhat release information

I was checking for the Redhat release so this time I used three different commands. Two commands gave the same result but the third command gave different result. Which one is right. ...
5
votes
1answer
2k views

What does <defunct> mean in the output of ps?

I had issued the ps -ef|grep java command and this is one of the entries that I got : subhrcho 875 803 0 Jan23 pts/5 00:02:27 [java] <defunct> What is <defunct> implying here ? ...
3
votes
2answers
252 views

Please explain the -f option in pgrep

man pgrep says the following about -f option: -f The pattern is normally only matched against the process name. When -f is set, the full command line is used. What does it ...
4
votes
1answer
433 views

What is the difference between exiting a process via Ctrl+C vs issuing a kill -9 command?

I know I can kill any process with kill -9 command . But sometimes i see that even if I have terminated a program with CTRL+C , the process doesn't get killed . So I want to know the difference ...
-3
votes
2answers
2k 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 ...
2
votes
3answers
3k 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 ?
12
votes
4answers
623 views

What is the difference between running a executable just by name and by appending a dot /slash before it?

This is the output from ls -all command : -rwxr----- 1 subhrcho dba 3600 Nov 13 17:26 jdev -rw-r----- 1 subhrcho dba 1566 Nov 13 17:26 jdev-Darwin.conf -rw-r----- 1 subhrcho dba 347 Mar 6 2009 ...
2
votes
1answer
304 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 ? ...