Connecting to a Wi-Fi network in recovery mode on Ubuntu
Sound Capture Problem On Ubuntu
Reset your local repository to its initial state
Linux flags are special options or parameters that you can add to a command to modify its behavior or output.
-a
(all): This flag is used with commands like ls to show all files, including hidden ones.-l
(long): This flag is used with commands like ls to show detailed information about files, such as permissions, ownership, and modification times.-r
(recursive): This flag is used with commands like cp or rm to copy or delete files and directories recursively.-i
(interactive): This flag is used with commands like rm to prompt the user for confirmation before deleting files.
pwd
get the present working directorycd
change directorycd ~
change directory to homecd ..
back to parent directory
ls
lists all files in the current directory except for hidden files.ls -l
List the files and directories in the current directory in long (table) formatls -a
List all the files including the hidden ones (File names starting with a . are hidden files in Linux).
chmod <specification> fileNmae
Change the file permissions. Specifications = u user, g group, o other, + add permission, - remove, r read, w write,x execute. command allows an administrator to set or modify a file’s permissions.
The “man” command, short for manual, is a powerful tool in the Linux operating system that allows users to access detailed information about various commands, utilities, and system calls.
example:
man ls
shows ls command information.man dpkg
shows dpkg command information.
Dpkg is a low-level tool that is used to manage, build, install, and remove Debian packages in the Linux operating system
-i
: flag use to install package-C
or--audit
: Checks for partially installed packages.-s
or--status
: Shows the status of a package.--unpack
: Unpacks the package, but does not configure it.--configure
: Configures a package which has been unpacked but not yet configured.-P
or--purge
: Removes a package including its configuration files.
- To Update & upgrade
sudo apt update
sudo apt upgrade
g++ file name
./a.out
tar -xvzf file_name
sudo dpkg -i package_name
sudo dpkg -r package_name
sudo dpkg-reconfigure PACKAGE_NAME
sudo dpkg --configure -a
- This will instruct apt-get to correct dependencies and continue to configure your packages.
sudo apt-get -f install
- List Block Devices
lsblk
- Using fdisk (View Partition Tables)
sudo fdisk -l
- Using df (Check Mounted Partitions)
df -h
For summarizing disk usages of the files in the current directory we use:
du -sh *
if you need to mount a partition that
sudo mount /dev/partition_name
GNOME (default in Ubuntu): Ubuntu Desktop uses GNOME as its default desktop environment. GNOME can run on both Xorg and Wayland. To check if Xorg is running, you can run:
`echo $XDG_SESSION_TYPE`
First Add endof the file alsa-base.conf options snd-hda-intel model=,dell-headset-multi.To do this:
sudo nano /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=,dell-headset-multi
Then Install this software pulseaudio,pavucontrol,if your wish to record sound install gnome-sound-recorder.
sudo apt install pulseaudio
sudo apt install pavucontrol
sudo apt install gnome-sound-recorder
sudo apt update
sudo apt upgrade
If you are tired of using long commands in bash you can create your own command alias.
The best way to do this is to modify (or create if it does not exist) a file called .bash_aliases in your home folder. The general syntax is:
alias command_alias='actual_command'
where actual_command is the command you are renaming and command_alias is the new name you have given it. For example
alias install='sudo apt-get -y install'