Linux Tutorials on the topic “shell”
-
Get a list of the installed services
Author: till • Tags: shell • Comments: 5
To get a list of the installed services on the shell, you may use this command (on Fedora, RedHat, CentOS, SuSE, and Mandriva): chkconfig --list
-
Creating image borders with ImageMagick convert
Author: till • Tags: shell • Comments: 0
The command is: convert -border 2x2 old.jpg new.jpg This creates a new image (new.jpg) with a 2 pixel border from the image old.jpg. To set the bordercolor to red, use this command: convert -border 2x2 -bordercolor "#FF0000" old.jpg new.jpg
-
How can I clear the shell window?
Author: Till Brehm • Tags: shell • Comments: 1
Use the commad: clear or the keyboard shortcut: [CTRL] + [L]
-
-
How to save a command in the shell history without executing it
Author: Till Brehm • Tags: shell • Comments: 2
Enter the command line and hit the keys:[CTRL] + [#]This will put a # in front of the command and execute it. The shell will take it as comment.
-
How can I observe a logfile continuously?
Author: Till Brehm • Tags: shell • Comments: 1
With the command: tail -f /path/to/logfile you will see all lines added to the logfile. To stop this, press [CTRL] + c
-
How do I search for a term in a file?
Author: admin • Tags: shell • Comments: 0
With the grep command. If you want to find out if the term user is in /etc/httpd/conf/httpd.conf, you would run grep -i user /etc/httpd/conf/httpd.conf (-i makes the search case-insensitive). Normally grep does not tell you the line number where it finds the term. If you want to find out the line number, run grep -n -i user /etc/httpd/conf/httpd.conf
-
How do I find out who is logged in on my system?
Author: admin • Tags: shell • Comments: 0
You can find out about logged in users either by running who (Sample output: server:~# who root pts/0 Nov 12 11:28 (192.168.0.202) ) or w which gives more detailed output: server:~# w 11:29:49 up 2:19, 1 user, load average: 0.02, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.0.202 11:28 0.00s 0.08s 0.01s w
-
Linux: How to burn a CD/DVD through the command line
Author: Bill Toulas • Tags: linux, shell • Comments: 0
Carrying out common daily tasks such as burning a DVD through the comfort of a user-friendly graphical interface is, of course, a good thing, but unfortunately things don't always work as expected. When this is the case, Linux users can revert to the good old terminal to get things done no matter what. On this quick tutorial, we will see how Linux users can utilize the terminal to burn audio CDs, data DVDs or ISO images on a disk.