Archive for the 'Tips' Category

bash Editing Commands/shortcuts

If you are like me who like to work on the terminal (bash) alot. Than you also find these bash editing shortcuts very usefull. Here is a list of some common bash editing shortcuts that has helped me over the

years:

Ctrl+A Move cursor to start of line.
Ctrl+E Move cursor to end of [...]

Making Dynamic Bash Prompt

Special character sequences in the prompt let you include the current directory, date and time, username, hostname, and much more. Your can get more information about this on your shell manual and depending on the shell type it should list these as PS1 or prompt variable.
It’s simplest to put single quotes around the prompt string [...]

Example of Linux Process Creation

In this example, we use the ls command to list a file. Because the ls program is the child of its local shell, we need to trace the shell from which the ll (ls -al alias) command is executed. Two shell windows are required to perform this test.

Window one: Determine the pseudo terminal and [...]

Sorting Your Users By Logging Shell They Use

If you wanted to sort the users in your system by the login shell they use, you could use this command: sort -t: +6 /etc/passwd
This is how it works, the option -t: tells sort to use a colon as a field separator — so, in this example, field 0 is the login name, field [...]

Pages (38): « First ... « 25 26 27 [28] 29 30 31 » ... Last »