- command displays active processes:
- ps
- command displays your username:
- whoami
- displays the file system block usage (-h option provides "Human-readable" output i.e. you will see it in Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte):
- du -h
- show statistics about the amount of free disk space:
- df
- command lists all of the files and subdirectories you have in a given directory:
- ls
- check Linux version info or running kernel information:
- cat /proc/version
- check linux kernel version number and system information:
- uname -mars
- check distribution-specific information or distribution version:
- lsb_release -a OR cat /etc/*release
- check if CPU is 32bit or 64bit:
- grep flags /proc/cpuinfo
- used to resynchronize the package index files from the their sources specified in /etc/apt/sources.list file. The update command fetched the packages from their locations and update the packages to newer version:
- sudo apt-get update
- used to upgrade all the currently installed software packages on the system. Under any circumstances currently installed packages are not removed or packages which are not already installed neither retrieved and installed to satisfy upgrade dependencies:
- sudo apt-get upgrade
- used to free up the disk space by cleaning retrieved (downloaded) .deb files (packages) from the local repository:
- sudo apt-get clean
Monday, July 21, 2014
12 Basic Useful Linux Commands
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment