With this command, you can view the content of your current working directory. ls is often paired with options -l(to view a detailed list of files) and -a (to view the hidden files).
Use it like this:
$ ls -al
Allow users to run programs with the security privileges of another user (normally the superuser). By default, sudo will prompt for a user password but it may be configured to require the root password.
Use it like this:
$ sudo gedit
When an application hangs or fails to close, never worry. Pressing this keyboard shortcut and then clicking on the troubled application will kill or end its process.
This is probably the most efficient command to use when you are looking for some files.find searches through one or more directory trees of a filesystem, locating files based on some user-specified criteria. By default, find returns all files below the current working directory.
To recursively search for files that starts with letter j starting from the /home directory use:
$ find /home -name j*
Since most Linux newbies are probably using Ubuntu, they should know how to use this command.
To install a package:$ sudo apt-get installpackage-name
To remove:$ sudo apt-get removepackage-name
This keyboard shortcut will kill the X server. Use this if X crashes and you can’t exit it normally. This restarts the server and throws you back immediately to the graphical login screen.
7. mv, cp, rm
I know that it is a lot easier to move, copy, and delete files using the mouse. But, I find it important that newbies should also know how to do it from the command line just in case of emergency.
Use them like these:move$ mv oldfilename.txt newfilename.txtcopy$ cp oldfilename.txt newfilename.txtdelete$ rm oldfilename.txt
Most Linux commands and applications have manual pages, so man is really handy if you you want to learn more about a particular command or programs.
Use it like this:man bash