is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?
Mohammad Reza Rezwani's questions
Once on a web site, I saw one command which shows the list of all ASCII codes on the terminal. But now I forgot that website and also that command. I need the list of them. Is there a command which shows the list of ASCII codes on the terminal?
I have some images which I want to merge. By this I mean that if I have 5 images, I want to arrange them in this way:
I want to do this using a command so that I can use a Bash script for it. For example the command could be like this:
foo image1 image2 image3 image4 image5
I have lots of images so the command should be able to process a large number of files.
The output can be PDF or even in image format.
I want to run a command foo on one terminal and pass the result to another terminal. Is it possible to do this ?
I have seen many commands that accept a "BSD syntax" as well as their standard syntax. Take the ps
command for one example:
To see every process on the system using standard syntax:
ps -e
ps -ef
ps -eF
ps -ely
To see every process on the system using BSD syntax:
ps ax
ps axu
So what is the difference between these two routes? In general when they say in BSD syntax what elements I should remember? Is this syntax just for those commands which they are in the BSD also?
Is there any switch to tell top
command in order to one time scan the system and do not monitor it all time?
By ctrl+alt+t I can open terminal. So Is there any keyswitch to open nautilus? or we should define that?
When I run a program (for example grep
or ls
) without a pager, its output is colored. However when I run it piping its output to less
, no colors are shown.
For example, this command outputs colored output:
grep -r something
but this doesn't:
grep -r something | less
Why? How can I see colors through less
?
I just want to write a script which changes my directory.
I put the below commands in the file /home/alex/pathABC
#!/bin/sh
cd /home/alex/Documents/A/B/C
echo HelloWorld
I did
chmod +x pathABC
In the Terminal, while in /home/alex
, I ran ./pathABC
, but the output is just HelloWorld
and the current directory is not changed.
So what is wrong?
I know when you type sudo ps ax
, that list all of the running process on the system. But want to know what is ax? what ax stand for? Is that abbreviation ?
Sometimes, when I type a command on the terminal, the terminal's autocomplete does not work, even if my command is not wrong.
For example, take look to this: sudo service vsftpd status
sudo and service do not have any problem. I mean, when you type sud +tab terminal suggest you sudo or I type servi + tab terminal complete that to service. But for vsftpd I do not get any suggestion. Is there a way to say, "terminal, please tell me any suggestion!!?".
In iptables
many times I see the target MASQUERADE. What is that? I searched and found lots of things. But I need someone to explain to me what MASQUERADE is in an easy to understand way?
An example (taken from this answer) is:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Suppose I want to know the usage of -i
switch in grep
command without scrolling. I need the specification just for that command or at least see the screen show that first. So how? As you can say that in general not just for grep -i
.
Suppose that I have a directory with name _file and includes two sub directory like _1 and _2 and on each one I have some text files. I want to search a word like foo in one of these text files. How I can do that? I want to know which text files in the whole directory contain that word?
For most commands that I have seen, there are some underlined words in their man
page. What is the meaning of this underline? Is that a link? If yes, how we can go there?
By running wireshark in 14.04 I got this error What should I do to solve this?
Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:46: dofile has been disabled due to running Wireshark as superuser. See http://wiki.wireshark.org/CaptureSetup/CapturePrivileges for help in running Wireshark as an unprivileged user.
Both files /etc/shadow
and /etc/passwd
seem to be the same, they just report some information about accounts. What is the difference between them?
I know in order to understand how commands work, we should use man page. But for command locale and locale-gen. I did not got the exact meaning and their duty. I need some more description about their jobs and the relation between locale and locale-gen. Based on man locale:
locale - Get locale-specific information.
ok what is locale??
DESCRIPTION The locale program writes information about the current locale environ��� ment, or all locales, to standard output.
what is locale environment?
I have an executable. I want to execute the executable in terminal with name only like other commands.
I can put my executable in /usr/local/bin
or I could add its PATH
to ~/.bashrc
. Both will work.
What is better? Is there any difference?