Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: Linux Mini Tips&tricks

Linux Mini Tips&tricks 11 years 3 weeks ago #10428

  • ping
  • ping's Avatar
  • Offline
  • Distinguished Member
  • Posts: 181
  • Karma: 0
Here are some commands that I use and thought might be interesting:
You can view the directories in color:
[code:1]alias ls="ls --color=tty"[/code:1]

If you use "cd" it will take us to the $HOME directory and to go back to the previous directory you have type "cd -"

How to split files so that you can put them on floppy discs
[code:1]split -b 1400000[/code:1]

to make the file back together
[code:1]cat x* > original_filename[/code:1]
You can open another terminal by typing "screen" and you can detach from it by pressing CTRL+A+D

You can run a process in the background by using "&" at the end of the command

If you want to run a previously used command you can type "!" and a part of the beginning of the command
eg: for

[code:1]vi /home/user/README[/code:1]

you can type


Do you want to monitor a log or a file that continuously grows?

[code:1]tail -f file_name[/code:1]

and you wont have to open/close it every time when you want to see what has been added to the file

To give a message to the people that are connected to your computer
[code:1]wall message[/code:1]

Are you annoied by the messages? Stop them

[code:1]mesg n[/code:1]

Do you want to edit a file that you know the name but you don't know where it's located?

[code:1]emacs $(which file_name)[/code:1]

This is all I can think of right now, feel free to continue the list :D

The greatest pleasure in life is doing what people say you can not do..!!
The administrator has disabled public write access.

Re: Linux Mini Tips&tricks 11 years 3 weeks ago #10441

  • jhun
  • jhun's Avatar
  • Offline
  • Senior Member
  • Posts: 356
  • Karma: 0
nice post there ping..this would really help alot both for noobs and expert linux users... :D
The administrator has disabled public write access.

Re: Linux Mini Tips&tricks 10 years 10 months ago #12114

  • gainil
  • gainil's Avatar
  • Offline
  • Frequent Member
  • Posts: 52
  • Karma: 0
Hi Ping !!

Nice Post really, as Jhun said it would really help experts as well as newbies like me :lol:

The administrator has disabled public write access.

Re: Linux Mini Tips&tricks 10 years 10 months ago #12331

  • Unforgiven
  • Unforgiven's Avatar
  • Offline
  • New Member
  • Posts: 15
  • Karma: 0
To extend his bit on "screen", not only can you detach and reattach to screen sessions, you can also do things like lock the terminal (ctrl-a ctrl-x), and have multiple terminals in one screen session (ctrl-a ctrl-c to create new ones). Screen is really sweet stuff, especially for when you're ssh'ing to a remote box.

Also, here's some configs I picked up from a mailing list a while back that puts a nice clock and listing of active screen terminals at the bottom. Pretty colors, too :)

It'll also make F7 and F8 be "back and forth" buttons for going through terminals.

Just put it in your .screenrc file in your home directory.

[code:1]hardstatus alwayslastline "%{km}%H%{mk} %{yb}%-Lw%{= yb}%50>%n%f* %t%{-}%+Lw%< %{gk}%-19=%C%a %D,%d %M "

bindkey -k k7 prev
bindkey -k k8 next
startup_message off

Oh, and you forgot the most important linux command ever!


If there's one thing I hate, it's everything.
The administrator has disabled public write access.
Time to create page: 0.079 seconds


Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V


  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup