For changing directory / to /etc
- [root@semakness /]# cd /etc
- [root@semakness etc]# cd ..
- [root@semakness /]# cd -
- [root@semakness etc]# cd ~
- [root@semakness ~]# dir /etc
- [root@semakness ~]# Ls /etc
- [root@semakness ~]# mkdir /disk
- [root@semakness ~]# mkdir /disk/dir
- [root@semakness ~]# mkdir /etc/dir1 /var/dir2 /usr/dir3
- [root@semakness ~]# mkdir dir1 dir2 dir3
- [root@semakness disk]# cp file dir
- [root@semakness disk]# cp /disk/file /disk/dir
- [root@semakness disk]# cp -r dir dir2
- [root@semakness disk]# cp /disk/file /etc/myfile
- [root@semakness disk]# rm file
- [root@semakness disk]# rm –f file
- [root@semakness disk]# rm dir
- [root@semakness disk]# rm -r /disk
- [root@semakness disk]# rm -rf dir
- [root@semakness disk]# mv /etc/dir1 /disk/mydir
- [root@semakness disk]# mv /disk/mydir /disk/dir
- [root@semakness disk]# mv file myfile
- [root@semakness disk]# less /etc/grub.conf
- [root@semakness disk]# more /etc/qrub.conf
- [root@semakness disk]# head /etc/grub.conf
- [root@semakness disk]# tail /etc/grub.conf
- [root@semakness disk]# head -n 12 /etc/grub.conf
- [root@semakness disk]# tail -n 11 /etc/grub.conf
- [root@semakness disk]# cat /etc/grub.conf > /disk/file
- [root@semakness disk]# cat /etc/mtab >> /disk/file
- [root@semakness disk]# cat /etc/squid/squid.conf I more
- [root@semakness disk]# cat /etc/squid/squid.conf I wc -L
- [root@semakness disk]# cat /etc/squid/squid.conf I grep spool
- [root@semakness disk]# cat /dev/null > /var/log/messages
Keyboard shortcuts are preset in the system, but you can add new ones or change them easily. For instance, change the default shortcut Ctrl+Alt+T (Run a Terminal) to Win+R (press R while holding down the Windows key, also known as Super key) by the following steps:
- Browse to Desktop > "Run a terminal"
- Click on the Shortcut, and it shows "New shortcut..."
- Press Win+R, and it shows Mod4+R
- Click the Close button and try the new shortcut.
- To disable a shortcut, press Backspace when it shows "New shortcut..." after the step 3 above.
- Shortcuts begin with XF86 refer to special keys available to some multimedia keyboards.
- Keyboard shortcuts can also be set by changing keybinding values with Configuration Editor. Press Alt+F2 and enter gconf-editor, then navigate to apps > gnome_settings_daemon > keybindings, or apps > metacity > global_keybindings and window_keybindings.
If your Ubuntu system sets the Minimize, Maximize and Close buttons to the left in a window and you prefer to change them to the right, then follow these simple steps:
Press to bring up "Run Application" window.
- Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
- Browse to apps > metacity > general, look for "button_layout" on the right panel.
- Change the value in the "button_layout" from close,minimize,maximize: to menu:minimize,maximize,close and press the Enter key.
When you set the panel to be transparent in the default Ambiance theme in Ubuntu, you will find that some panel items' backgrounds are not transparent, but you can make them transparent and consistent with others, following these steps:
Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter cp -R /usr/share/themes/Ambiance ~/.themes/
- Enter gedit ~/.themes/Ambiance/gtk-2.0/apps/gnome-panel.rc (for Ubuntu 11.04 or 10.10) gedit ~/.themes/Ambiance/gtk-2.0/gtkrc (for Ubuntu 10.04), to open the file with gedit.
- Search for this line bg_pixmap[NORMAL] = "img/panel.png" (for Ubuntu 11.04 or 10.10) OR bg_pixmap[NORMAL] = "panel_bg.png" (for Ubuntu 10.04)
Comment out the line by placing a # at the beginning of the line, like this: # bg_pixmap[NORMAL] = ...
- Save the file.
- Go to System > Preferences > Appearance, switch to the other theme and then back to the Ambiance theme.
Ubuntu includes a top panel and a bottom panel by default. If you prefer to keep only one panel at the bottom just like the Windows Taskbar, then these are the steps to follow:
Delete the bottom panel: right-click over it and click "Delete This Panel".
- Move the top panel to bottom: right-click over it, select "Properties" and change Orientation from "Top" to "Bottom".
- Add running program buttons: right-click the panel, select "Add to Panel", scroll down and select "Window List", click "Add".
- Replace the Menu Bar ("Applications-Places-System") with the "Main Menu" to save space in the panel:
- Right-click the "Menu Bar" and select "Remove From Panel".
- Right-click the panel, select "Add to Panel" and choose "Main Menu", click "Add".
- Right-click the items (Firefox, etc) and untick "Lock to Panel".
- Right-click the added "Main Menu", select "Move" to relocate it to the far left.
- sudo gconftool-2 --shutdown
- sudo rm -rf .gconf/apps/panel
- sudo pkill gnome-panel
SPONSORED BY





Recent Comments